summaryrefslogtreecommitdiffstats
path: root/layouts/_default/home.manifest.webmanifest
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/home.manifest.webmanifest')
-rw-r--r--layouts/_default/home.manifest.webmanifest5
1 files changed, 3 insertions, 2 deletions
diff --git a/layouts/_default/home.manifest.webmanifest b/layouts/_default/home.manifest.webmanifest
index ba35d63..53c2dec 100644
--- a/layouts/_default/home.manifest.webmanifest
+++ b/layouts/_default/home.manifest.webmanifest
@@ -1,4 +1,5 @@
-{{- $uuid := sha1 (printf "%s/index.html?homescreen=1" site.BaseURL) -}}
+{{- $url := "index.html?source=pwa" -}}
+{{- $uuid := sha1 (printf "%s/%s" site.BaseURL $url) -}}
{
"$schema": "https://json.schemastore.org/web-manifest",
"id": "{{ substr $uuid 0 8 }}-{{ substr $uuid 8 4 }}-5{{ substr $uuid 13 3 }}-{{ substr $uuid 16 1 }}9{{ substr $uuid 17 2 }}-{{ substr $uuid 21 12 }}",
@@ -7,7 +8,7 @@
{{ with site.Params.description }}"description": {{ . | htmlUnescape | jsonify }},{{ end }}
"lang": "{{ site.LanguageCode | default site.Language.Lang }}",{{ with partialCached "func/GetLanguageDirection" "GetLanguageDirection" }}
"dir": {{ . | jsonify }},{{ end }}
- "start_url": "/index.html?homescreen=1",
+ "start_url": {{ (printf "/%s" $url) | jsonify }},
"display": "fullscreen",
"theme_color": "#ffffff",
"background_color": "#ffffff",