metalsmith-collection-metadata
A Metalsmith plugin to add metadata to every file in a collection.
Requires metalsmith-collections.
Installation
$ npm install metalsmith-collection-metadata
Usage
To add metadata to a collection, you must assign a metadata object to a property that points to the location of that collection. For example:
metalsmith
Adds a type
property to every file in the pages
and posts
collections.
License
MIT