metalsmith-collection-grouping
A Metalsmith plugin for grouping collections by a property.
Installation
$ npm install metalsmith-collection-grouping --save
Usage
var Metalsmith = var collectionGrouping = var metalsmith = __dirname
The meta
property can either accept properties inline or through a json file.
The groups will be available as part of the Metalsmith.metadata()
, this plugin
does not modify the collections, they will remain as-is.