datashaman/tongs-metadata

Metadata plugin for Tongs

1.0.0 2020-01-29 12:30 UTC

This package is auto-updated.

Last update: 2024-10-29 05:53:12 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.