From 2d63a0090aba1e09f09d19a93beb8702999a5e8c Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sat, 11 Apr 2020 22:25:03 +0100 Subject: [PATCH] feat: add initial RTL language support --- data/i18n/rtl.toml | 2 ++ layouts/_default/baseof.html | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 data/i18n/rtl.toml diff --git a/data/i18n/rtl.toml b/data/i18n/rtl.toml new file mode 100644 index 00000000..e1b44c52 --- /dev/null +++ b/data/i18n/rtl.toml @@ -0,0 +1,2 @@ +# List of ISO 639-1 language codes for which text is directed from right to left. +rtl = ["ar", "fa", "he", "ur"] diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index ba50dc71..249dba8a 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,5 +1,6 @@ - +{{- $language_code := site.LanguageCode | default "en-us" -}} + {{ partial "site_head" . }}