A Metalsmith plugin to add a directory of JSON files for use as global metadata in templates, partials and pages.
The Metalsmith Metadata Directory plugin is a powerful tool designed for developers looking to streamline the way they manage metadata within their templates, partials, and pages. Authored by Phil Lennon, this plugin allows users to effortlessly integrate a directory of JSON and YAML files into their Metalsmith projects. By doing so, it simplifies the process of utilizing global metadata without the hassle of declaring multiple filenames.
This plugin supports current Node LTS versions and brings flexibility through its support for globbing patterns, allowing for the inclusion of subdirectories and multiple files. It's a great addition for those who want to improve their Metalsmith workflow while maintaining a clean and organized codebase.
Supports Multiple Formats: Handles both JSON and YAML files, providing versatility for different data formats.
Globbing Patterns: Easily include subdirectories and multiple files with globbing patterns, simplifying file management and integration.
Node LTS Compatibility: Tested against all current Node LTS versions (10 & 12), ensuring reliability and support for your projects.
Simple Installation: Quickly install through npm, with straightforward configuration for your metadata directory.
Usage Flexibility: Access metadata by referencing filenames without extensions, making it simple to work with in templates.
Debug Mode Support: Easily enable debugging output to troubleshoot any issues that may arise during development.
MIT License: Open-source license allows for freedom of use and contribution from the community.
Plugin Ordering: Important guidelines provided for proper plugin ordering within your Metalsmith setup to ensure optimal functionality.
Metalsmith is a flexible and modular Static Site Generator (SSG) built on Node.js. It operates on a simple plugin-based architecture, allowing developers to easily customize and transform content to generate static websites with diverse functionalities.