Note: This is a template repository
Usage:
- Click "Use this template", see also https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template, fill in new plugin details
- Search and replace all
core-pluginCorePluginandcorePluginmatches with the name of the plugin - Change description in package.json & match in repo description
- Remove this text
A metalsmith plugin to...
Features
An optional features section (if there are many), or an extended description of the core plugin
Installation
NPM:
npm install @metalsmith/~core-plugin~
Yarn:
yarn add @metalsmith/~core-plugin~
Usage
Pass @metalsmith/~core-plugin~ to metalsmith.use :
import ~corePlugin~ from '@metalsmith/~core-plugin~' metalsmith.use(~corePlugin~()) // defaults metalsmith.use(~corePlugin~({ // explicit defaults ... }))
Options
Optional section with list or table of options, if the plugin has a lot of options
Specific usage example
Document a first specific usage example, the title can be "Achieve x by doing y"
Specific usage example
Document a second specific usage example, the title can be "Achieve x by doing y"
Debug
To enable debug logs, set the DEBUG environment variable to @metalsmith/~core_plugin~*:
metalsmith.env('DEBUG', '@metalsmith/~core_plugin~*')
Alternatively you can set DEBUG to @metalsmith/* to debug all Metalsmith core plugins.
CLI usage
To use this plugin with the Metalsmith CLI, add @metalsmith/~core-plugin~ to the plugins key in your metalsmith.json file:
{
"plugins": [
{
"@metalsmith/~core-plugin~": {}
}
]
}Credits (optional)
Special thanks to ... for ...