Skip to content

fortes/metalsmith-alias

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

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

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published