1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-27 16:16:21 -04:00

add maskable icons to manifest

https://web.dev/maskable-icon-audit/?utm_source=lighthouse&utm_medium=cli
This commit is contained in:
Jake Jarvis 2021-06-12 09:25:45 -04:00
parent a2445d236d
commit 8eda53296f
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39
4 changed files with 18 additions and 4 deletions

View File

@ -21,10 +21,10 @@
"uses-optimized-images": "warn", "uses-optimized-images": "warn",
"uses-rel-preconnect": "warn", "uses-rel-preconnect": "warn",
"is-crawlable": "off", "is-crawlable": "off",
"modern-image-formats": "off",
"offscreen-images": "off", "offscreen-images": "off",
"uses-long-cache-ttl": "off", "uses-long-cache-ttl": "off",
"uses-responsive-images": "off", "uses-responsive-images": "off"
"uses-webp-images": "off"
}, },
"includePassedAssertions": true "includePassedAssertions": true
}, },

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

View File

@ -5,12 +5,26 @@
{ {
"src": "{{ (resources.Get "img/android-chrome-512x512.png").Permalink | safeJS }}", "src": "{{ (resources.Get "img/android-chrome-512x512.png").Permalink | safeJS }}",
"sizes": "512x512", "sizes": "512x512",
"type": "image/png" "type": "image/png",
"purpose": "any"
}, },
{ {
"src": "{{ (resources.Get "img/android-chrome-192x192.png").Permalink | safeJS }}", "src": "{{ (resources.Get "img/android-chrome-192x192.png").Permalink | safeJS }}",
"sizes": "192x192", "sizes": "192x192",
"type": "image/png" "type": "image/png",
"purpose": "any"
},
{
"src": "{{ (resources.Get "img/maskable-512x512.png").Permalink | safeJS }}",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "{{ (resources.Get "img/maskable-192x192.png").Permalink | safeJS }}",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
} }
], ],
"start_url": "{{ .Site.BaseURL | safeJS }}", "start_url": "{{ .Site.BaseURL | safeJS }}",