feat: add canonical link to head (#331)

uci-hugo-doc
Robert Kaussow 2022-02-07 12:04:51 +01:00 committed by GitHub
parent a901b3da36
commit e100ccf034
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -59,8 +59,12 @@
media="all"
/>
{{ if (default false $.Site.Params.GeekdocOverwriteHTMLBase) }}
{{- with .OutputFormats.Get "html" }}
{{ printf `<link href=%q rel=%q type=%q />` .Permalink .Rel .MediaType.Type | safeHTML }}
{{- end }}
{{- if (default false $.Site.Params.GeekdocOverwriteHTMLBase) }}
<base href="{{ .Site.BaseURL }}" />
{{ end }}
{{- end }}
{{ printf "<!-- %s -->" "Made with Geekdoc theme https://github.com/thegeeklab/hugo-geekdoc" | safeHTML }}