Fix: Favicon config

This commit is contained in:
Aroy-Art 2022-03-10 14:53:00 +01:00
parent 48a2f0f987
commit be7fcf56f2
Signed by: Aroy
GPG key ID: DB9689E9391DD156

View file

@ -31,8 +31,8 @@
<link rel="stylesheet" href="{{ $custom.Permalink }}" media="screen"> <link rel="stylesheet" href="{{ $custom.Permalink }}" media="screen">
{{ "<!--Favicon-->" | safeHTML }} {{ "<!--Favicon-->" | safeHTML }}
<link rel="shortcut icon" href="{{ `/img/favicon.png` | absURL }}" type="image/x-icon"> <link rel="shortcut icon" href="{{ with site.Params.favicon }}{{ . | absURL }}{{ end }}" type="image/x-icon">
<link rel="icon" href="{{ `/img/favicon.png` | absURL }}" type="image/x-icon"> <link rel="icon" href="{{ with site.Params.favicon }}{{ . | absURL }}{{ end }}" type="image/x-icon">
{{ with .OutputFormats.Get "rss" -}} {{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}