Skip to content

Instantly share code, notes, and snippets.

Created November 19, 2015 19:27
Show Gist options
  • Save anonymous/379d3baaee3503050fdc to your computer and use it in GitHub Desktop.
Save anonymous/379d3baaee3503050fdc to your computer and use it in GitHub Desktop.
var Metalsmith = require('metalsmith');
var layouts = require('metalsmith-layouts');
var markdown = require('metalsmith-markdownit');
var sass = require('metalsmith-sass');
var footnote = require('markdown-it-footnote');
var md = markdown({
html: true,
typographer: true
});
md.parser.use(footnote);
Metalsmith(__dirname)
.use(md)
.use(layouts({ engine: 'handlebars', default: 'default.html' }))
.use(sass({ outputDir: 'css' }))
.build(function(err) {
if (err) {
throw err;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment