1

Réintroduction des favicons

This commit is contained in:
2025-12-07 15:19:38 +01:00
parent cb3b09efb7
commit 3089bebe24
3 changed files with 11 additions and 2 deletions

BIN
static/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

View File

@@ -1,4 +1,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
<link rel="icon" href="{{ "favicon.ico" | absURL }}" type="image/x-icon" />
<link rel="shortcut icon" href="{{ "favicon.ico" | absURL }}" type="image/x-icon" />
<link rel="icon" href="{{ "favicon.png" | absURL }}" type="image/png" sizes="256x256" />
{{ partialCached "head/css.html" . }}

View File

@@ -1,5 +1,6 @@
{{- $authorEmail := "" }}
{{- $authorName := "" }}
{{- $favicon := "favicon.png" | absURL }}
{{- with site.Params.author }}
{{- if reflect.IsMap . }}
{{- with .email }}{{- $authorEmail = . }}{{- end }}
@@ -30,6 +31,11 @@
<title>{{ .Site.Title }}</title>
<link>{{ .Permalink }}</link>
<description>{{ .Site.Title }}</description>
<image>
<url>{{ $favicon }}</url>
<title>{{ .Site.Title }}</title>
<link>{{ .Permalink }}</link>
</image>
<language>{{ site.Language.LanguageCode }}</language>{{ with $authorEmail }}
<managingEditor>{{.}}{{ with $authorName }} ({{ . }}){{ end }}</managingEditor>{{ end }}{{ with $authorEmail }}
<webMaster>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</webMaster>{{ end }}{{ with .Site.Copyright }}