Fixed favicon on subpages

This commit is contained in:
Aroy-Art 2021-09-05 10:40:18 +02:00
parent 560917e252
commit fbb98ffd3b

View file

@ -1,6 +1,6 @@
<head>
<meta charset="{{ site.Params.charset }}">
<title>{{ .Title }}</title>
<title>{{with .Title }}{{ . }}{{ else }}{{ with site.Params.title }}{{ . }}{{ end }}{{ end }}</title>
{{ "<!-- Mobile responsive meta -->" | safeHTML }}
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
@ -31,8 +31,8 @@
<link rel="stylesheet" href="{{ $style.Permalink }}" media="screen">
{{ "<!--Favicon-->" | safeHTML }}
<link rel="shortcut icon" href="{{ `img/favicon.png` | absURL }}" type="image/x-icon">
<link rel="icon" href="{{ `img/favicon.png` | absURL }}" type="image/x-icon">
<link rel="shortcut icon" href="{{ `/img/favicon.png` | absURL }}" type="image/x-icon">
<link rel="icon" href="{{ `/img/favicon.png` | absURL }}" type="image/x-icon">
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}