♻️ refactor: use set, add spacing and rename variable

This commit is contained in:
welpo 2024-02-09 21:35:03 +01:00
parent d921d3af01
commit 1d950d34e3
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6

View file

@ -13,7 +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"] %}
{% set rtl_languages = ["ar", "arc", "az", "dv", "ff", "he", "ku", "nqo", "fa", "rhg", "syc", "ur"] %}
<!DOCTYPE html>
@ -23,7 +23,7 @@ This variable will hold all the text strings for the language #}
{% include "partials/header.html" %}
<body {% if lang in rtl_langs %} dir="rtl" {% endif %}>
<body{% if lang in rtl_languages %} dir="rtl"{% endif %}>
{% include "partials/nav.html" %}
<div class="content">