Metalsmith plugin that add posix path and rename files.
npm install metalsmith-posix-path
var Metalsmith = require('metalsmith')
var posixPath = require('metalsmith-posix-path')
Metalsmith(__dirname)
.use(posixPath({
property:['path', 'canonical'],
rename: {
extname: '.html'
}
}))
.build()
name | description | default | type |
---|---|---|---|
property |
property name for metadata | 'posixPath' |
string or array
|
omit |
delete filename if it's index.*
|
true |
boolean |
rename |
rename file | {} |
string or object
|
rename: https://github.com/popomore/rename
MIT