File metadata plugin for Tongs static site generator.
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
.
This plugin is heavily based on metalsmith-metadata.