Skip to content

Commit eafcf89

Browse files
authored
fix: favicon does not load if baseurl includes a subfolder (CaiJimmy#972)
Use relURL https://gohugo.io/functions/urls/relurl/
1 parent 0b9f6c3 commit eafcf89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/partials/head/head.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
{{- end -}}
2020

2121
{{ with .Site.Params.favicon }}
22-
<link rel="shortcut icon" href="{{ . }}" />
22+
<link rel="shortcut icon" href="{{ . | relURL }}" />
2323
{{ end }}
2424

2525
{{- template "_internal/google_analytics.html" . -}}

0 commit comments

Comments
 (0)