mirror of
https://github.com/imgproxy/imgproxy.git
synced 2024-11-24 08:12:38 +02:00
Add canonical meta for docs
This commit is contained in:
parent
46e655e1ba
commit
cc25a8b940
@ -44,6 +44,12 @@
|
||||
<script src="assets/docsify-edit-link.js"></script>
|
||||
<script src="assets/docsify-gitter.js"></script>
|
||||
<script>
|
||||
if (window.DOCSIFY_ROUTER_MODE === "history") {
|
||||
var clink = document.createElement("link")
|
||||
clink.rel = "canonical"
|
||||
document.getElementsByTagName("head")[0].appendChild(clink)
|
||||
}
|
||||
|
||||
window.$docsify = {
|
||||
logo: '/assets/logo.svg',
|
||||
name: 'imgproxy',
|
||||
@ -58,7 +64,14 @@
|
||||
},
|
||||
plugins: [
|
||||
EditOnGithubPlugin.create('https://github.com/imgproxy/imgproxy/blob/master/docs/'),
|
||||
GitterPlugin.create("imgproxy/imgproxy", "1775d3")
|
||||
GitterPlugin.create("imgproxy/imgproxy", "1775d3"),
|
||||
function (hook, vm) {
|
||||
hook.beforeEach(function () {
|
||||
if (clink) {
|
||||
clink.href = "https://docs.imgproxy.net" + vm.route.path
|
||||
}
|
||||
});
|
||||
}
|
||||
]
|
||||
}
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user