From d921d3af01b3e8c33b2c04d971dac7e8b17c2e62 Mon Sep 17 00:00:00 2001 From: Awiteb Date: Fri, 9 Feb 2024 18:23:16 +0300 Subject: [PATCH 1/2] =?UTF-8?q?=E2=9C=A8=20feat(rtl):=20Change=20the=20bod?= =?UTF-8?q?y=20directionality=20to=20`rtl`=20if=20the=20lang=20are=20RTL?= =?UTF-8?q?=20lang?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/base.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/base.html b/templates/base.html index 9711e9998..c975167b3 100644 --- a/templates/base.html +++ b/templates/base.html @@ -13,6 +13,7 @@ {%- if not language_strings -%} {%- set language_strings = load_data(path="themes/tabi/i18n/" ~ lang ~ ".toml", required=false) -%} {%- endif -%} +{% set_global rtl_langs = ["ar","arc","az","dv","ff","he","ku","nqo","fa","rhg","syc","ur"] %} @@ -22,7 +23,7 @@ {% include "partials/header.html" %} - + {% include "partials/nav.html" %}
From 1d950d34e311ba529bfdbffde52c6dc70f8e6042 Mon Sep 17 00:00:00 2001 From: welpo Date: Fri, 9 Feb 2024 21:35:03 +0100 Subject: [PATCH 2/2] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor:=20use=20`set?= =?UTF-8?q?`,=20add=20spacing=20and=20rename=20variable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/base.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/base.html b/templates/base.html index c975167b3..679d97552 100644 --- a/templates/base.html +++ b/templates/base.html @@ -13,7 +13,7 @@ {%- if not language_strings -%} {%- set language_strings = load_data(path="themes/tabi/i18n/" ~ lang ~ ".toml", required=false) -%} {%- endif -%} -{% set_global rtl_langs = ["ar","arc","az","dv","ff","he","ku","nqo","fa","rhg","syc","ur"] %} +{% set rtl_languages = ["ar", "arc", "az", "dv", "ff", "he", "ku", "nqo", "fa", "rhg", "syc", "ur"] %} @@ -23,7 +23,7 @@ {% include "partials/header.html" %} - + {% include "partials/nav.html" %}