Skip to content

Commit 15f0349

Browse files
committed
fix(head): Wrap favicon url with relURL
Fix #124 Signed-off-by: Khusika Dhamar Gusti <[email protected]>
1 parent 26fe1ec commit 15f0349

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

layouts/_partials/head/link.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55

66
{{- if not .Site.Params.app.noFavicon -}}
77
{{- with .Site.Params.app.svgFavicon -}}
8-
<link rel="icon" href="{{ . }}">
8+
<link rel="icon" href="{{ . | relURL }}">
99
{{- else -}}
10-
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
11-
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
12-
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
10+
<link rel="shortcut icon" type="image/x-icon" href="{{ "/favicon.ico" | relURL }}" />
11+
<link rel="icon" type="image/png" sizes="32x32" href="{{ "/favicon-32x32.png" | relURL }}">
12+
<link rel="icon" type="image/png" sizes="16x16" href="{{ "/favicon-16x16.png" | relURL }}">
1313
{{- end -}}
14-
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
14+
<link rel="apple-touch-icon" sizes="180x180" href="{{ "/apple-touch-icon.png" | relURL }}">
1515
{{- with .Site.Params.app.iconColor -}}
16-
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="{{ . }}">
16+
<link rel="mask-icon" href="{{ "/safari-pinned-tab.svg" | relURL }}" color="{{ . }}">
1717
{{- end -}}
18-
<link rel="manifest" href="/site.webmanifest">
18+
<link rel="manifest" href="{{ "/site.webmanifest" | relURL }}">
1919
{{- end -}}
2020

2121
<link rel="canonical" href="{{ .Permalink }}" />

0 commit comments

Comments
 (0)