mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-06-30 03:25:58 -04:00
some cleanup around hugo + webpack manifest
This commit is contained in:
@@ -1,32 +1,34 @@
|
||||
{
|
||||
"name": "{{ .Site.Title }}",
|
||||
"short_name": "{{ (urls.Parse .Site.Params.baseURL).Host }}",
|
||||
{{- with .Site.Data.manifest }}
|
||||
"icons": [
|
||||
{{ with index .Site.Data.manifest "images/android-chrome-512x512.png" }}{
|
||||
{{ with index . "images/android-chrome-512x512.png" }}{
|
||||
"src": "{{ .src | absURL | safeJS }}",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png",
|
||||
"purpose": "any"
|
||||
},{{ end }}
|
||||
{{ with index .Site.Data.manifest "images/android-chrome-192x192.png" }}{
|
||||
{{ with index . "images/android-chrome-192x192.png" }}{
|
||||
"src": "{{ .src | absURL | safeJS }}",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png",
|
||||
"purpose": "any"
|
||||
},{{ end }}
|
||||
{{ with index .Site.Data.manifest "images/maskable-512x512.png" }}{
|
||||
{{ with index . "images/maskable-512x512.png" }}{
|
||||
"src": "{{ .src | absURL | safeJS }}",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
},{{ end }}
|
||||
{{ with index .Site.Data.manifest "images/maskable-192x192.png" }}{
|
||||
{{ with index . "images/maskable-192x192.png" }}{
|
||||
"src": "{{ .src | absURL | safeJS }}",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
}{{ end }}
|
||||
],
|
||||
{{- end }}
|
||||
"start_url": "/",
|
||||
"display": "browser",
|
||||
"background_color": "#ffffff",
|
||||
|
||||
Reference in New Issue
Block a user