Ajout favicon.

This commit is contained in:
2026-04-03 14:51:21 +02:00
parent d56c873652
commit 2d2da86f6a
3 changed files with 59 additions and 0 deletions
+13
View File
@@ -55,5 +55,18 @@
{{ end }}
{{ end }}
{{ with resources.Get "favicon.png" }}
{{ with .Resize "180x" }}
<link rel="apple-touch-icon" sizes="{{ .Width }}x{{ .Height }}" href="{{ .RelPermalink }}">
{{ end }}
{{ $res := . }}
{{ range (slice "256" "128" "96" "64" "48" "32" "16") }}
{{ with $res.Resize (print . "x") }}
<link rel="icon" type="image/png" sizes="{{ .Width }}x{{ .Height }}" href="{{ .RelPermalink }}">
{{ end }}
{{ end }}
{{ end }}
<title>{{ block "title" . }}{{ .Site.Title }} - {{ .Title }}{{ end }}</title>
{{/* vim: set tw=80 ts=2 sw=2 sts=2 ft=gohtmltmpl: */}}