feat: start web app at localized home page where applicable

Also, add support for 512x512 pixel splash screen icon
`static/img/icon-512.png` .

Close #1247
This commit is contained in:
George Cushen committed 2019-07-31 01:23:42 +01:00
1 parent 3326ad410e
commit 32b6145c06
1 file changed
+4 -3
+4 -3
View File
@@ -1,6 +1,7 @@
{{- $scr := .Scratch -}}
{
"name": "{{site.Title}}",
"short_name": "{{site.Title}}",
"lang": "{{site.LanguageCode}}",
"theme_color": "{{ $scr.Get "primary" }}",
"background_color": "{{ $scr.Get "primary" }}",
@@ -8,11 +9,11 @@
"src": "img/icon-192.png",
"sizes": "192x192",
"type": "image/png"
}{{- if (fileExists "static/img/icon-512.png") -}}, {
}, {
"src": "img/icon-512.png",
"sizes": "512x512",
"type": "image/png"
}{{end}}],
}],
"display": "standalone",
"start_url": "./?utm_source=web_app_manifest"
"start_url": "{{ "/" | relLangURL }}?utm_source=web_app_manifest"
}