datashaman/tongs-metadata

Metadata plugin for Tongs

1.0.0 2020-01-29 12:30 UTC

This package is auto-updated.

Last update: 2021-12-29 13:04:16 UTC


README

File metadata plugin for Tongs static site generator.

setup

If you add the following config to your tongs.json file:

{
  "plugins": {
    "metadata": {
      "authors": "data/authors.json"
    }
  }
}

... then this plugin will load the contents of src/data/authors.json into the global metadata as authors.

The data files are removed from the build pipeline. The plugin recognizes and parses file with extensions json, yaml and yml.

source

This plugin is heavily based on metalsmith-metadata.