From b968bf6e8f013995a728b19e217a456f8aff180a Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sun, 11 Apr 2021 14:17:47 +0200 Subject: [PATCH] Formatting --- material/partials/header.html | 5 ++--- src/base.html | 2 +- src/partials/header.html | 5 ++--- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/material/partials/header.html b/material/partials/header.html index 343d2660a..02f9b8a68 100644 --- a/material/partials/header.html +++ b/material/partials/header.html @@ -27,10 +27,9 @@ - {% set palette = config.theme.palette %} - {% if palette and not palette is mapping %} + {% if not config.theme.palette is mapping %}
- {% for option in palette %} + {% for option in config.theme.palette %} {% set primary = option.primary | replace(" ", "-") | lower %} {% set accent = option.accent | replace(" ", "-") | lower %} diff --git a/src/base.html b/src/base.html index 7f066c38a..41e468a00 100644 --- a/src/base.html +++ b/src/base.html @@ -152,7 +152,7 @@ {% block extrahead %}{% endblock %} - + {% set direction = config.theme.direction or lang.t('direction') %} {% if config.theme.palette %} {% set palette = config.theme.palette %} diff --git a/src/partials/header.html b/src/partials/header.html index e543bd053..cd8718f1b 100644 --- a/src/partials/header.html +++ b/src/partials/header.html @@ -64,10 +64,9 @@ - {% set palette = config.theme.palette %} - {% if palette and not palette is mapping %} + {% if not config.theme.palette is mapping %} - {% for option in palette %} + {% for option in config.theme.palette %} {% set primary = option.primary | replace(" ", "-") | lower %} {% set accent = option.accent | replace(" ", "-") | lower %}