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.webmanifest6
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 }}
]
}
+
+