mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-06-12 22:27:32 +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-edit-link.js"></script>
|
||||||
<script src="assets/docsify-gitter.js"></script>
|
<script src="assets/docsify-gitter.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
if (window.DOCSIFY_ROUTER_MODE === "history") {
|
||||||
|
var clink = document.createElement("link")
|
||||||
|
clink.rel = "canonical"
|
||||||
|
document.getElementsByTagName("head")[0].appendChild(clink)
|
||||||
|
}
|
||||||
|
|
||||||
window.$docsify = {
|
window.$docsify = {
|
||||||
logo: '/assets/logo.svg',
|
logo: '/assets/logo.svg',
|
||||||
name: 'imgproxy',
|
name: 'imgproxy',
|
||||||
@ -58,7 +64,14 @@
|
|||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
EditOnGithubPlugin.create('https://github.com/imgproxy/imgproxy/blob/master/docs/'),
|
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>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user