Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Metalsmith plugin for creating URL aliases/redirects for a page with

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.