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

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 }}
@@ -49,4 +55,4 @@
</item>
{{- end }}
</channel>
</rss>
</rss>