mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-17 03:29:31 -07:00
refactor(favicon); change favicon related setup
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
{{- if site.Params.favicon -}}
|
||||
{{- with site.Params.svgFavicon -}}
|
||||
<link rel="icon" href="{{ . }}" />
|
||||
<link rel="icon" type="image/svg+xml" href="{{ . }}" />
|
||||
{{- with site.Params.svgFaviconFallback -}}
|
||||
<link rel="icon" type="image/png" href="{{ . }}" />
|
||||
{{- end -}}
|
||||
{{- 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 -}}
|
||||
|
||||
Reference in New Issue
Block a user