mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 10:15:22 +00:00
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:
1 parent
3326ad410e
commit
32b6145c06
1 file changed
+4
-3
@@ -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"
|
||||
}
|
||||
Reference in new issue
Block a user