1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-09-19 20:02:10 +00:00
seirdy.one/assets/manifest.webmanifest
Rohan Kumar b9e4be50f5
Metadata: description + cache-bust manifest icons
- Add a cache-busting fingerprint to all the icons in the webmanifest
- Add a <meta> and open graph tag for a description.
- Include a 512px icon in the manifest
2020-12-19 17:50:55 -08:00

38 lines
1 KiB
JSON

{{- $192png := resources.Get "/apple-touch-icon.png" | resources.Fingerprint "md5" }}
{{- $512png := resources.Get "/favicon512.png" | resources.Fingerprint "md5" }}
{{- $1024svg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" }}
{{- $maskablesvg := resources.Get "/maskable_android.svg" | resources.Fingerprint "md5" -}}
{
"name": "Seirdy's Home",
"short_name": "Seirdy",
"description": "{{ .Site.Params.Description }}",
"display": "browser",
"scope": "/",
"start_url": "/",
"icons": [
{
"src": "{{ $192png.Permalink }}",
"sizes": "192x192",
"type": "image/png",
"purpose": "any"
},
{
"src": "{{ $512png.Permalink }}",
"sizes": "512x512",
"type": "image/png",
"purpose": "any"
},
{
"src": "{{ $1024svg.Permalink }}",
"sizes": "1024x1024 512x512 384x384 192x192 180x180 152x152",
"type": "image/svg+xml",
"purpose": "any"
},
{
"src": "{{ $maskablesvg.Permalink }}",
"sizes": "1024x1024 512x512 384x384 192x192 180x180 152x152",
"type": "image/svg+xml",
"purpose": "maskable"
}
]
}