Create archive metadata for all your posts
npm install --save-dev metalsmith-archiveJavaScript API:
var Metalsmith = require('metalsmith');
var archive = require('metalsmith-archive');
Metalsmith()
.use(archive());The folder your posts live in. Defaults to "posts"
The fields to search through froup grouping. Defaults to ['publishDate', 'modifiedDate', 'date']. The first field found is considered the date to group it in
Group your posts by month? Defaults to true. Pass in false to disable this functionality.
Sort years asc or desc. Defaults to desc
Sort months asc or desc. Defaults to desc
Sort posts asc or desc. Defaults to desc
The language locale to use. This affects the months being returned. Accepts any valid moment locale
The metalsmith cli workflow has not been tested