vuepress-plugin-redirect-frontmatter
v1.0.0
Published
VuePress plugin to handle redirection via frontmatter
Downloads
3,061
Maintainers
Readme
vuepress-plugin-redirect-frontmatter
🎉VuePress plugin to handle redirection via frontmatter.
Installation
$ yarn add --dev vuepress-plugin-redirect-frontmatter
# or
$ npm install -D vuepress-plugin-redirect-frontmatter
Usage
// .vuepress/config.js
module.exports = {
plugins: ['redirect-frontmatter'],
}
And add redirectFrom
variable to your page's frontmatter.
---
permalink: /current-permalink
redirectFrom: /old-permalink
---
You can also specify multiple values.
---
permalink: /current-permalink
redirectFrom:
- /old-permalink1
- /old-permalink2
- /old-permalink3
---
Enjoy😃