feat(rtl): Change the body directionality to rtl if the lang are RTL lang

This commit is contained in:
Awiteb 2024-02-09 18:23:16 +03:00
parent 8b5a131001
commit d921d3af01
No known key found for this signature in database
GPG key ID: 16C8AD0B49C39C88

View file

@ -13,6 +13,7 @@ This variable will hold all the text strings for the language #}
{%- 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"] %}
<!DOCTYPE html>
@ -22,7 +23,7 @@ This variable will hold all the text strings for the language #}
{% include "partials/header.html" %}
<body>
<body {% if lang in rtl_langs %} dir="rtl" {% endif %}>
{% include "partials/nav.html" %}
<div class="content">