Allow setting accent/default theme per page/section

Woo-hoo!
This commit is contained in:
daudix
2024-09-18 02:17:05 +03:00
parent 0e24fcd190
commit c460476303
5 changed files with 84 additions and 39 deletions

View File

@ -8,7 +8,7 @@
{%- set rtl_languages = ["ar", "arc", "az", "dv", "ff", "he", "ku", "nqo", "fa", "rhg", "syc", "ur"] -%}
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" {% if lang in rtl_languages %}dir="rtl"{% endif %} lang="{{ lang }}" {% if config.extra.default_theme %}data-theme="{{config.extra.default_theme}}"{% endif %}>
<html xmlns="http://www.w3.org/1999/xhtml" {% if lang in rtl_languages %}dir="rtl"{% endif %} lang="{{ lang }}" {% include "partials/default_theme.html" %}>
{% include "partials/head.html" %}
<body>
{% block body %}