mirror of
https://github.com/welpo/tabi.git
synced 2025-10-11 15:56:15 +02:00
✨ feat(rtl): Change the body directionality to rtl
if the lang are RTL lang
This commit is contained in:
parent
8b5a131001
commit
d921d3af01
1 changed files with 2 additions and 1 deletions
|
@ -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">
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue