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:
parent
b6c9db9106
commit
35e0ee9886
1 changed files with 1 additions and 23 deletions
|
|
@ -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) -}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue