From a64ecac610c08d3d6ae956498ba41f8d5375c623 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sat, 12 Nov 2022 15:08:01 +0100 Subject: [PATCH] Formatting --- material/base.html | 6 ++---- material/partials/header.html | 6 ++---- src/base.html | 8 +++----- src/partials/header.html | 8 +++----- 4 files changed, 10 insertions(+), 18 deletions(-) diff --git a/material/base.html b/material/base.html index 8cc225e18..fffc06df5 100644 --- a/material/base.html +++ b/material/base.html @@ -81,10 +81,8 @@ {% if not palette is mapping %} {% set palette = palette | first %} {% endif %} - {% set scheme = palette.scheme | d("default", true) %} - {% set primary = palette.primary %} - {% set accent = palette.accent %} - + {% set scheme = palette.scheme | d("default", true) %} + {% else %} {% endif %} diff --git a/material/partials/header.html b/material/partials/header.html index b1408e081..66264c00e 100644 --- a/material/partials/header.html +++ b/material/partials/header.html @@ -34,10 +34,8 @@ {% if not config.theme.palette is mapping %}
{% for option in config.theme.palette %} - {% set scheme = option.scheme | d("default", true) %} - {% set primary = option.primary %} - {% set accent = option.accent %} - + {% set scheme = option.scheme | d("default", true) %} + {% if option.toggle %}