diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-07-10 23:44:32 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-07-10 23:44:32 +0200 |
| commit | 477e47f4eda5344b799839d0d645d125c903b099 (patch) | |
| tree | 45e7c8ee870124e9e18272860f6a174e9fc911f4 /layouts/_default/home.manifest.webmanifest | |
| parent | bd2d8cc841343dd6a66e5dbd53d735b0ea7e3d61 (diff) | |
| download | gohugo-theme-ed-477e47f4eda5344b799839d0d645d125c903b099.tar.gz | |
Update entrypoint for pwa
Diffstat (limited to 'layouts/_default/home.manifest.webmanifest')
| -rw-r--r-- | layouts/_default/home.manifest.webmanifest | 5 |
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", |
