metalsmith-alias
Create aliases for a pages with automatic redirection.
alias:
- alternate-name
- other/url
- somepage/that/used/to/be/here.html
Usage
const alias = ; // Other plugins and configuration // More plugins and configuration
Options:
netlify
: Whether a Netlify_redirects
file should be created (defaultfalse
).
Changelog
0.2.0
: Use forced redirects to avoid shadowing.0.1.2
: Don't overwrite existing_redirects
.0.1.1
: Generate extra redirects withoutindex.html
.0.1.0
: Add ability to create_redirects
file for Netlify.0.0.3
: Usepath
member if set on the file object.
Alternatives
- metalsmith-redirect: Setup site-wide redirects