Add customizable/disable-able favicons

This commit is contained in:
BBaoVanC 2021-09-28 18:28:22 -05:00
parent c995cb9d95
commit 41bd025132
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
1 changed files with 8 additions and 1 deletions

View File

@ -3,7 +3,14 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="/css/bobatheme.css">
<link rel="alternate icon" href="/favicon.ico" />
{{ with .Site.Params.faviconICO }}
<link rel="icon" type="image/x-icon" href="{{.}}" />
{{ end }}
{{ with .Site.Params.faviconPNG }}
<link rel="icon" type="image/png" href="{{.}}" />
{{ end }}
{{ range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}