Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 794 Bytes

README.md

File metadata and controls

32 lines (25 loc) · 794 Bytes

vuepress-plugin-canonical

canonical plugin for vuepress

Add <link rel='canonical' ...> to your vuepress site.

Install

npm i vuepress-plugin-canonical -D

Usage

Read How to use vuepress Plugin first, modify your .vuepress/config.js.

module.exports = {
  plugins: [
    [
      'vuepress-plugin-canonical',
      {
        baseURL: 'https://mina.wiki', // base url for your canonical link, optional, default: ''
        stripExtension: true // strip '.html' , optional, default: false
      }
    ]
  ]
}

Refrences