Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Read a directory of files, get a blog data structure.
JavaScript
branch: master

This branch is 9 commits behind chilts:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
test
.gitignore
README.md
index.js
package.json

README.md

 ______   _        _______  _______  _______ 
(  ___ \ ( \      (  ___  )(  ____ \/ ___   )
| (   ) )| (      | (   ) || (    \/\/   )  |
| (__/ / | |      | |   | || |          /   )
|  __ (  | |      | |   | || | ____    /   / 
| (  \ \ | |      | |   | || | \_  )  /   /  
| )___) )| (____/\| (___) || (___) | /   (_/\
|/ \___/ (_______/(_______)(_______)(_______/

Read a directory of files, get a blog data structure.

Synopsis

var blogz = require('blogz');
var util  = require('util');
var blog  = blogz({
  contentDir : __dirname + '/blog',
  domain     : 'www.mysite.com',
  base       : '/blog'
});

console.log(util.inspect(blog, null, 5));

Why is this Module Separate?

Basically because it is useful in a lot of places:

  1. Could be used in a static website generator
  2. Used in connect-blog
  3. Future: Used as a plugin for my Proximity project (soon to be renamed and released)

Author

Written by Andrew Chilton - Blog - Twitter.

License

(Ends)

Something went wrong with that request. Please try again.