blog-archiver
v1.1.0
Published
Generates an archive page for a blog given a folder with blog entries
Downloads
2
Readme
##blog-archiver:
archive page generator for your blog
File Format: yyyy-mm-dd-title.md
Inputs:
- title: Archive Title
- directory: Directory for files
Options:
- routing: put your custom route for the href
- extension: File Extension for files in directory. Defaults to .md
- capitalize: Capitalize words in Titles or Leaves as is. Defaults to capitalize.
To use with Express / Connect, use as below.
var archiver = require('BlogArchiver');
var html = archiver.generateHTML("blog", __dirname + "/node_modules/blog-archiver/blog");
console.log(html);
Examples:
See it work for my own blog here
Copyright (c) 2016, Brian Lin. (MIT Licensed)