Support bigger favicon sizes and remove most default favicons, sites might not have all sizes and then theme version will leak.

This commit is contained in:
Fredrik Jonsson 2025-03-26 08:31:40 +01:00
commit 35e0ee9886

View file

@ -8,7 +8,7 @@
<link rel="manifest" href="{{ "site.webmanifest" | relURL }}">
{{ end -}}
{{ $favname := "" -}}
{{ $favsizes := slice "128x128" "96x96" "48x48" "32x32" "16x16" -}}
{{ $favsizes := slice "512x512" "256x256" "128x128" "96x96" "48x48" "32x32" "16x16" -}}
{{ range $favsizes -}}
{{ $favname = (printf "favicon-%s.png" .) -}}
{{ if fileExists (path.Join "/static" $favname) -}}