Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 707 Bytes

README.md

File metadata and controls

43 lines (29 loc) · 707 Bytes

metalsmith-json-metadata

Build Status

Metalsmith plugin that add metadata by jsonfile.

Install

npm i metalsmith-json-metadata

Usage

build.js

var Metalsmith = require('metalsmith')
var jsonMetadata = require('metalsmith-json-metadata')

Metalsmith(__dirname)
  .use(jsonMetadata())
  .build()

index.html

---
jsonMetadata: ['one.json', 'two.json']
---
<p>Hello, world!</p>

Options

name description default
except except json used true

License

MIT