summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--exampleSite/config/_default/params.yaml6
-rw-r--r--layouts/_default/home.manifest.webmanifest5
2 files changed, 8 insertions, 3 deletions
diff --git a/exampleSite/config/_default/params.yaml b/exampleSite/config/_default/params.yaml
index 4b2c913..9387248 100644
--- a/exampleSite/config/_default/params.yaml
+++ b/exampleSite/config/_default/params.yaml
@@ -30,7 +30,11 @@ footer: >-
target="_blank" rel="noopener noreferrer">Ed</a>. Distributed under an MIT
license.
-# Sections to be displayed in the main page, RSS/Atom feeds as well as search index.
+# Sections to be displayed in:
+# - main page
+# - RSS/Atom/Json feeds
+# - search index
+# - ...
mainSections:
- posts
- dramas
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",