fix: favicon does not load if baseurl includes a subfolder (#972)

Use relURL https://gohugo.io/functions/urls/relurl/
This commit is contained in:
Andrew Doering 2024-03-12 14:50:49 +01:00 committed by GitHub
parent 0b9f6c36ad
commit eafcf894c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,7 +19,7 @@
{{- end -}} {{- end -}}
{{ with .Site.Params.favicon }} {{ with .Site.Params.favicon }}
<link rel="shortcut icon" href="{{ . }}" /> <link rel="shortcut icon" href="{{ . | relURL }}" />
{{ end }} {{ end }}
{{- template "_internal/google_analytics.html" . -}} {{- template "_internal/google_analytics.html" . -}}