metalsmith-metadata
A metalsmith plugin to load global metadata from files.
Last updated 5 years ago by lambtron .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install metalsmith-metadata 
SYNC missed versions from official npm registry.

metalsmith-metadata

A metalsmith plugin to load global metadata from files.

Supports .json and .yaml data.

Installation

$ npm install metalsmith-metadata

CLI Usage

Install via npm and then add the metalsmith-metadata key to your metalsmith.json plugins. Each key in the dictionary of options will be the key mixed into the global metadata, like so:

{
  "plugins": {
    "metalsmith-metadata": {
      "authors": "./path/to/authors.json",
      "categories": "./path/to/categories.yaml"
    }
  }
}

Javascript Usage

Pass the options to Metalsmith#use:

var metadata = require('metalsmith-metadata');

metalsmith.use(metadata({
  authors: './path/to/authors.json',
  categories: './path/to/categories.yaml'
}));

License

MIT

Current Tags

  • 0.0.4                                ...           latest (5 years ago)

4 Versions

  • 0.0.4                                ...           5 years ago
  • 0.0.3                                ...           5 years ago
  • 0.0.2                                ...           5 years ago
  • 0.0.1                                ...           7 years ago
Downloads
Today 0
This Week 0
This Month 7
Last Day 0
Last Week 3
Last Month 1
Dependencies (1)
Dev Dependencies (2)

Copyright 2014 - 2016 © taobao.org |