Make previous commit actually work

This is a huge mess, Zola is really not i18n-friendly
This commit is contained in:
daudix
2024-06-16 04:57:51 +03:00
parent a4a68c8b61
commit 7bb9b19e77
12 changed files with 68 additions and 49 deletions

View File

@ -1,12 +1,14 @@
{% set rtl = ["ar", "arc", "az", "dv", "ff", "he", "ku", "nqo", "fa", "rhg", "syc", "ur"] %}
<!DOCTYPE html>
<html lang="en">
{% include "partials/head.html" ignore missing %}
<body>
{% include "partials/nav.html" ignore missing %}
<html lang="{{ lang }}">
{% include "partials/head.html" %}
<body {% if lang in rtl %}dir="rtl"{% endif %}>
{% include "partials/nav.html" %}
<div id="main" class="container">
{% block custom %}{%- endblock -%}
{% block content %}{%- endblock -%}
</div>
{% include "partials/footer.html" ignore missing %}
{% include "partials/footer.html" %}
</body>
</html>