Skip to content

ttskch/vuepress-plugin-redirect-frontmatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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😃

About

🎉VuePress plugin to handle redirection via frontmatter

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published