Metalsmith can be used to generate a blog. This plugin generates populate metadata about which blog posts are grouped together by tag.
Name of the key used in yaml to indicate the list of tags a post is related to
Key used to sort files related to a post by.
Reverse the order of the sort
Template used to render a static page for list of files related to a tag
Function that filters out files so they are not processed by the plugin
Key used to store a list of tags and their counts
Function whose arguments are a file and a tag, allowing adding more context around a file that is related to a tag.
var tags = require('metalsmith-tags');
metalsmith
.use(tags({
handle: 'tags',
sortBy: 'date',
reverse: true,
template: 'tags.hbt',
filter: file => file.path.indexOf('file-i-care-about') >= 0,
listName: 'tag-cloud',
getMetadata: (file, tag) => ({ icon: tag title: tag })
}));