added canonical metatag to documentation pages (#191)

This commit is contained in:
trean
2023-06-15 19:41:40 +02:00
committed by GitHub
parent 30f54653f9
commit 99f49b4b2d
2 changed files with 24 additions and 0 deletions
@@ -155,4 +155,13 @@
<!-- Author -->
{{ if .Params.author }}
<meta name="author" content="{{ .Params.author }}">
{{ end }}
<!-- Canonical URL -->
{{ if (eq .Section "documentation") }}
{{ if .Params.canonicalUrl }}
<link rel="canonical" href="{{ .Params.canonicalUrl }}">
{{ else }}
<link rel="canonical" href="{{ .Permalink }}">
{{ end }}
{{ end }}