.. | ||
lib | ||
LICENSE | ||
package.json | ||
README.md |
Metalsmith Paths
A Metalsmith plugin that adds file path values (base
, dir
, ext
, name
, href
) to metadata path
property.
Install
npm install --save metalsmith-paths
API
var Metalsmith = require('metalsmith')
var paths = require('metalsmith-paths')
var metalsmith = new Metalsmith(__dirname)
.use(paths({
property: "paths"
}))
CLI
You can also use the plugin with the Metalsmith CLI by adding a key to your metalsmith.json
file:
{
"plugins": {
"metalsmith-paths": {
"property": "paths"
}
}
}
Options
name | description | default |
---|---|---|
property |
property to store the path data to | path |
Support
Donations are welcome to help support the continuous development of this project.