a file's attribute filter for metalsmith
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
README.md
index.js
package.json

README.md

metalsmith-only

NPM version Dependencies Status

a file's attribute only filter for metalsmith

Install

metalsmith-only

Usage

var metalSmith = require('metalsmith');
var only = require('metalsmith-only');

var metalsmith = metalSmith(__dirname);
metalsmith
    .source('post')
    .use(only('name title'))
    .build()

License

MIT