blogware
Version:
A static site generator for hosting full-featured Ghost blog on GitHub Pages.
21 lines (17 loc) • 470 B
JavaScript
var steps = [
'convert', // converting markup files
'homepage', // paginating the homepage
'authors', // paginating the author pages
'tags', // paginating the tag pages
'generate' // generating files
]
function finalize(stream, marked) {
var opts = {
stream: stream,
marked: marked
};
return steps.reduce(function(promise, step) {
return promise.then(require('./' + step));
}, Promise.resolve(opts));
}
module.exports = finalize;