1.1.0 • Published 7 years ago

metalsmith-posix-path v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

metalsmith-posix-path

Build Status

Metalsmith plugin that add posix path and rename files.

Install

npm install metalsmith-posix-path

Usage

var Metalsmith = require('metalsmith')
var posixPath = require('metalsmith-posix-path')

Metalsmith(__dirname)
  .use(posixPath({
    property:['path', 'canonical'],
    rename: {
      extname: '.html'
    }
  }))
  .build()

Options

namedescriptiondefaulttype
propertyproperty name for metadata'posixPath'string or array
omitdelete filename if it's index.*trueboolean
renamerename file{}string or object

rename: https://github.com/popomore/rename

License

MIT