blog-archiver

1.1.0 • Public • Published

##blog-archiver:

archive page generator for your blog

npm version

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)

Readme

Keywords

Package Sidebar

Install

npm i blog-archiver

Weekly Downloads

2

Version

1.1.0

License

MIT

Last publish

Collaborators

  • blin17