Skip to content

Instantly share code, notes, and snippets.

@christiannwamba
Created December 21, 2017 14:18
Show Gist options
  • Save christiannwamba/0569daef08de96a0572d31ff85e18c81 to your computer and use it in GitHub Desktop.
Save christiannwamba/0569daef08de96a0572d31ff85e18c81 to your computer and use it in GitHub Desktop.
metalsmith(__dirname)
.source('src')
.use(collections({
articles: {
pattern: 'articles/**/*.md',
sortBy: 'date',
reverse: true
}
}))
.use(markdown({
gfm: true,
tables: true,
}))
.use(assets({
source: 'src/assets/',
destination: './'
}))
.use(permalinks())
.use(templates({
engine: 'jade',
directory: 'templates'
}))
.destination('build');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment