This package has been deprecated

Author message:

This package is no longer maintained and has moved to the @metalsmith org; Please migrate to the following package: @metalsmith/metadata

metalsmith-metadata

0.0.4 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Published

Version History

  • Version
    Downloads (Last 7 Days)
    • Published

Package Sidebar

Install

npm i metalsmith-metadata

Weekly Downloads

46

Version

0.0.4

License

MIT

Last publish

Collaborators

  • f2prateek
  • ianstormtaylor
  • lambtron
  • segmentio
  • webketje
  • woodyrew