Skip to content

Commit 1fd1c7a

Browse files
authored
Merge pull request #50 from ipfs/fix/add-canonical-link
fix: add canonical link
2 parents 47cdc7b + 19ac97c commit 1fd1c7a

File tree

3 files changed

+26
-30
lines changed

3 files changed

+26
-30
lines changed

docs/.vuepress/config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,14 @@ module.exports = {
358358
add('keywords', $site.themeConfig.keywords)
359359
}
360360
}
361+
],
362+
[
363+
'vuepress-plugin-canonical',
364+
{
365+
// add <link rel="canonical" header (https://tools.ietf.org/html/rfc6596)
366+
// to deduplicate SEO across all copies loaded from various public gateways
367+
baseURL: 'https://docs-beta.ipfs.io'
368+
}
361369
]
362370
],
363371
extraWatchFiles: ['.vuepress/nav/en.js'],

package-lock.json

Lines changed: 17 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"prettier": "^1.19.1",
2121
"stylus-supremacy": "^2.14.0",
2222
"vuepress": "^1.2.0",
23+
"vuepress-plugin-canonical": "^1.0.0",
2324
"vuepress-plugin-clean-urls": "^1.1.1",
2425
"vuepress-plugin-seo": "^0.1.2"
2526
},

0 commit comments

Comments
 (0)