summaryrefslogtreecommitdiffstats
path: root/layouts/_default/home.manifest.webmanifest
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2024-09-26 18:03:18 +0200
committerSerghei Iakovlev <git@serghei.pl>2024-09-26 20:44:54 +0200
commit1c6bd7d156d5627fa9808fb0e0300fb17327ebc4 (patch)
treeea963faefbe600152e8e4b9ed08a40071c5ba597 /layouts/_default/home.manifest.webmanifest
parent51f2ee43c90e44a871f0c2050b9e4d6f06151010 (diff)
downloadgohugo-theme-ed-1c6bd7d156d5627fa9808fb0e0300fb17327ebc4.tar.gz
Refine site language, direction and code
Diffstat (limited to 'layouts/_default/home.manifest.webmanifest')
-rw-r--r--layouts/_default/home.manifest.webmanifest6
1 files changed, 2 insertions, 4 deletions
diff --git a/layouts/_default/home.manifest.webmanifest b/layouts/_default/home.manifest.webmanifest
index 53c2dec..e43108e 100644
--- a/layouts/_default/home.manifest.webmanifest
+++ b/layouts/_default/home.manifest.webmanifest
@@ -6,8 +6,8 @@
"name": {{ site.Title | htmlUnescape | jsonify }},
{{ with site.Params.tagline }}"short_name": {{ . | htmlUnescape | jsonify }},{{ end }}
{{ with site.Params.description }}"description": {{ . | htmlUnescape | jsonify }},{{ end }}
- "lang": "{{ site.LanguageCode | default site.Language.Lang }}",{{ with partialCached "func/GetLanguageDirection" "GetLanguageDirection" }}
- "dir": {{ . | jsonify }},{{ end }}
+ "lang": "{{ site.Language.LanguageCode }}",
+ "dir": "{{ or site.Language.LanguageDirection `ltr` }}",
"start_url": {{ (printf "/%s" $url) | jsonify }},
"display": "fullscreen",
"theme_color": "#ffffff",
@@ -30,5 +30,3 @@
}{{ if ne . 512 }},{{ end }}{{- end }}
]
}
-
-