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
6 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) -}}
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 1,005 B |
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 7.5 KiB |
|
|
@ -1,21 +0,0 @@
|
|||
{
|
||||
"name": "Zen demo",
|
||||
"short_name": "Zen demo",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/web-app-manifest-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
},
|
||||
{
|
||||
"src": "/web-app-manifest-512x512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
}
|
||||
],
|
||||
"theme_color": "#ffffff",
|
||||
"background_color": "#ffffff",
|
||||
"display": "standalone"
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.1 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 6 KiB |
Loading…
Reference in a new issue