Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ttskch/vuepress-plugin-redirect-frontmatter
🎉VuePress plugin to handle redirection via frontmatter
https://github.com/ttskch/vuepress-plugin-redirect-frontmatter
frontmatter redirect vue vuepress vuepress-plugin
Last synced: 16 days ago
JSON representation
🎉VuePress plugin to handle redirection via frontmatter
- Host: GitHub
- URL: https://github.com/ttskch/vuepress-plugin-redirect-frontmatter
- Owner: ttskch
- License: mit
- Created: 2020-05-12T03:58:42.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-12T05:12:14.000Z (over 4 years ago)
- Last Synced: 2024-10-02T15:37:26.496Z (about 1 month ago)
- Topics: frontmatter, redirect, vue, vuepress, vuepress-plugin
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vuepress-plugin-redirect-frontmatter
[![](https://img.shields.io/npm/v/vuepress-plugin-redirect-frontmatter?style=flat-square)](https://www.npmjs.com/package/vuepress-plugin-redirect-frontmatter)
[![](https://img.shields.io/npm/dm/vuepress-plugin-redirect-frontmatter?style=flat-square)](https://www.npmjs.com/package/vuepress-plugin-redirect-frontmatter)🎉[VuePress](https://vuepress.vuejs.org/) plugin to handle redirection via frontmatter.
## Installation
```bash
$ yarn add --dev vuepress-plugin-redirect-frontmatter# or
$ npm install -D vuepress-plugin-redirect-frontmatter
```## Usage
```js
// .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😃