metalsmith-url

v1.0.0
Metalsmith plugin to add url to entries from transformation on filenames
metalsmith metalsmith-plugin

metalsmith-url Travis Build Status

Metalsmith plugin to add url to entries from transformation on filenames

Installation

$ npm install metalsmith-url

Usage

import Metalsmith from "metalsmith"
import url from "metalsmith-url"

new Metalsmith("./")
  .use(
    url([
      [/\.md$/, ".html"],
      [/index\.html?$/, ""],
    ])
  )
  .build(err => {if (err) {throw err}})

Options

This plugin takes an array. Each item must be an array of [pattern, replacement]

Changelog

License

npm i metalsmith-url

Metadata

  • MIT
  • Whatever
  • Maxime Thirouin
  • released 5/1/2015

Downloads

Maintainers