0.1.0 • Published 12 years ago
wintersmith-redirect v0.1.0
wintersmith-redirect
Page redirects where you can't modify headers. e.g. on GitHub pages.
NOTE If you have the ability modify headers (a .htaccess or similar) do a 301 redirect.
Installing
Install globally or locally using npm
npm install [-g] wintersmith-redirector
wintersmith plugin install redirectand add wintersmith-redirect to your config.json
{
"plugins": [
"wintersmith-redirect"
]
}Usage
Add a redirects object to your config.json like so:
{
"redirects": {
"old/page.html": "new/page.html",
"gone.html": "http://example.com"
}
}Running tests
npm install
npm test0.1.0
12 years ago