Metalsmith plugin for creating URL aliases/redirects for a page with
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.nvmrc
.travis.yml
LICENSE
README.md
index.js
package.json
test.js

README.md

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.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