vuepress-plugin-redirect-frontmatter

    1.0.0 • Public • Published

    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😃

    Install

    npm i vuepress-plugin-redirect-frontmatter

    DownloadsWeekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    12.2 kB

    Total Files

    12

    Last publish

    Collaborators

    • ttskch