feat(baseof.html): include favicon partial in head section of baseof.html layout for favicon rendering

This commit is contained in:
Sped0n
2023-11-04 14:29:09 +08:00
parent de523d08f4
commit 7150be69d6
14 changed files with 92 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
{{- partial "head/link.html" -}}
{{- partial "head/meta.html" -}}
{{- partial "head/seo.html" -}}
{{- partial "head/favicon.html" -}}
</head>
<body lang="{{- site.LanguageCode -}}">
<div id="main">

View File

@@ -0,0 +1,13 @@
{{- if site.Params.favicon -}}
{{- with site.Params.svgFavicon -}}
<link rel="icon" href="{{ . }}" />
{{- else -}}
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
{{- end -}}
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
{{- with site.Params.iconColor -}}
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="{{ . }}" />
{{- end -}}
{{- end -}}