mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-10 00:12:09 +00:00
Webmanifest: re-use mask_icon as monochrome icon
This commit is contained in:
parent
758460f258
commit
72e3765593
1 changed files with 8 additions and 0 deletions
|
@ -2,10 +2,12 @@
|
||||||
{{- $512png := resources.Get "/favicon512.png" | resources.Fingerprint "md5" }}
|
{{- $512png := resources.Get "/favicon512.png" | resources.Fingerprint "md5" }}
|
||||||
{{- $1024svg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" }}
|
{{- $1024svg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" }}
|
||||||
{{- $maskablesvg := resources.Get "/maskable_android.svg" | resources.Fingerprint "md5" -}}
|
{{- $maskablesvg := resources.Get "/maskable_android.svg" | resources.Fingerprint "md5" -}}
|
||||||
|
{{- $monochromesvg := resources.Get "/mask_apple.svg" | resources.Fingerprint "md5" -}}
|
||||||
{
|
{
|
||||||
"name": "Seirdy's Home",
|
"name": "Seirdy's Home",
|
||||||
"short_name": "Seirdy",
|
"short_name": "Seirdy",
|
||||||
"description": "{{ .Site.Params.Description }}",
|
"description": "{{ .Site.Params.Description }}",
|
||||||
|
"lang": "en-US",
|
||||||
"display": "browser",
|
"display": "browser",
|
||||||
"scope": "/",
|
"scope": "/",
|
||||||
"start_url": "/",
|
"start_url": "/",
|
||||||
|
@ -33,6 +35,12 @@
|
||||||
"sizes": "1024x1024 512x512 384x384 192x192 180x180 152x152",
|
"sizes": "1024x1024 512x512 384x384 192x192 180x180 152x152",
|
||||||
"type": "image/svg+xml",
|
"type": "image/svg+xml",
|
||||||
"purpose": "maskable"
|
"purpose": "maskable"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "{{ $monochromesvg.Permalink }}",
|
||||||
|
"sizes": "1024x1024 512x512 384x384 192x192 180x180 152x152",
|
||||||
|
"type": "image/svg+xml",
|
||||||
|
"purpose": "monochrome"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue