diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-28 15:15:11 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-28 15:15:11 +0200 |
| commit | 6b2b8e81e631a1fec44bdb94d5177cf5c56287c9 (patch) | |
| tree | 994d425dd7ea4e4d57986e64fefd712de8011c03 /layouts/_default/home.manifest.webmanifest | |
| parent | 512e94b28b243105e053c1090f56ac31846bc7cf (diff) | |
| download | gohugo-theme-ed-6b2b8e81e631a1fec44bdb94d5177cf5c56287c9.tar.gz | |
Added multilanguage support
Diffstat (limited to 'layouts/_default/home.manifest.webmanifest')
| -rw-r--r-- | layouts/_default/home.manifest.webmanifest | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/layouts/_default/home.manifest.webmanifest b/layouts/_default/home.manifest.webmanifest index 0a84c55..c9437df 100644 --- a/layouts/_default/home.manifest.webmanifest +++ b/layouts/_default/home.manifest.webmanifest @@ -5,8 +5,8 @@ "name": {{ site.Title | htmlUnescape | jsonify }}, {{ with site.Params.tagline }}"short_name": {{ . | htmlUnescape | jsonify }},{{ end }} {{ with site.Params.description }}"description": {{ . | htmlUnescape | jsonify }},{{ end }} - {{ with site.LanguageCode }}"lang": {{ . | jsonify }}, - "dir": "ltr", {{/* TODO: Get dir from lang */}}{{ end }} + "lang": "{{ site.LanguageCode | default site.Language.Lang }}",{{ with partialCached "func/GetLanguageDirection" "GetLanguageDirection" }} + "dir": {{ . | jsonify }},{{ end }} "start_url": "/index.html?homescreen=1", "display": "fullscreen", "theme_color": "#ffffff", @@ -28,3 +28,5 @@ }{{ if ne . 512 }},{{ end }}{{- end }} ] } + + |
