metalsmith-auto-collections
Automatically use metalsmith-collections
. The collection name is equal to the parent directory of each file.
Installation
npm install metalsmith-auto-collections [-D]
Usage
const Metalsmith = const collect = const ms = // add all files to a collectionms // use globs to only set certain files to a collectionms // pass settings to `metalsmith-collections`ms // pass collections to metalsmith-collections (for manual collections)ms
To see the available options, see the metalsmith-collections
repo.