feat: add canonical link to head (#331)

This commit is contained in:
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

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 }}