0.1.1 • Published 9 years ago

@quickglance/metalsmith-folder-config v0.1.1

Weekly downloads
2
License
MIT
Repository
-
Last release
9 years ago

Appveyor Build Status

metalsmith-folder-config

A Metalsmith plugin to apply global metadata to every file inside a folder that are at the same level.

Installation

$ npm install @quickglance/metalsmith-folder-config

Usage

Pass options to the folder-config plugin and pass it to metalsmith with the use method:

var folderConfig = require('metalsmith-folder-config');

metalsmith.use(folderConfig({
    configFileName: 'config.json' // default: folder-config.json
}));

In some folder:

  • layout
  • build
  • src
    • folder 1
      • folder.config.json
      • markdownfile.md
      • markdownfile.md
      • markdownfile.md
    • folder 2
      • folder.config.json
      • markdownfile.md
      • markdownfile.md
      • markdownfile.md

License

MIT