datashaman / tongs-metadata
Metadata plugin for Tongs
Installs: 37
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 1
pkg:composer/datashaman/tongs-metadata
Requires
- symfony/yaml: ^4.0
Requires (Dev)
- datashaman/tongs: 1.*.*
- phpunit/phpunit: ^8.5
This package is auto-updated.
Last update: 2025-06-29 01:28:44 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.