# 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😃

Made with ❤️ by Ahmad Mostafa - @z3by