metalsmith-alias

0.2.0 • Public • Published

metalsmith-alias build status

Greenkeeper badge

Create aliases for a pages with automatic redirection.

alias:
- alternate-name
- other/url
- somepage/that/used/to/be/here.html

Usage

const alias = require('metalsmith-alias');
 
Metalsmith()
  // Other plugins and configuration
  .use(alias({netlify: true}))
  // More plugins and configuration

Options:

Changelog

  • 0.2.0: Use forced redirects to avoid shadowing.
  • 0.1.2: Don't overwrite existing _redirects.
  • 0.1.1: Generate extra redirects without index.html.
  • 0.1.0: Add ability to create _redirects file for Netlify.
  • 0.0.3: Use path member if set on the file object.

Alternatives

Package Sidebar

Install

npm i metalsmith-alias

Weekly Downloads

9

Version

0.2.0

License

ISC

Unpacked Size

6.11 kB

Total Files

7

Last publish

Collaborators

  • fortes