metalsmith-url

Metalsmith plugin to add url to entries from transformation on filenames

MIT 1 个版本
安装
npm install metalsmith-url
yarn add metalsmith-url
pnpm add metalsmith-url
bun add metalsmith-url
README

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

版本列表
1.0.0 2015-05-01