Vuepress plugin that generates alias pages for proper redirect handling
-
Yarn
yarn add vuepress-plugin-alias
-
NPM
npm install vuepress-plugin-sitemap
// .vuepress/config.js
module.exports = {
plugins: [ 'alias' ]
}
and in your front-matter add alias to redirect from
---
alias: old-link.html
---
or a list of aliases
---
aliases:
- old-link1.html
- old-link2.html
---