metalsmith-json-metadata
v0.1.0
Published
[![Build Status](https://travis-ci.org/hbsnow/metalsmith-json-metadata.svg?branch=master)](https://travis-ci.org/hbsnow/metalsmith-json-metadata)
Downloads
2
Readme
metalsmith-json-metadata
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