From 12b6b132e4c24c80813b726bd7191c83a5aead05 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Tue, 3 Nov 2020 20:21:10 +0530 Subject: [PATCH] Revert "theme-switch-button: improve logic" This reverts commit 0eed773e6dcf999cb052b6f781bfbe7ad74e63c7. --- layouts/partials/footer.html | 2 +- layouts/partials/header.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index dbc49899..f3baf823 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -50,7 +50,7 @@ localStorage.setItem("menu-scroll-position", document.getElementById('menu').scrollLeft); } -{{- if (and (not .Site.Params.disableThemeToggle) (not (eq .Site.Params.defaultTheme "auto"))) }} +{{- if (and (not .Site.Params.disableThemeToggle) (not (or (eq .Site.Params.defaultTheme "light") (eq .Site.Params.defaultTheme "dark")))) }} {{- end }} -{{- if (eq .Site.Params.defaultTheme "auto") }} +{{- if (and (.Site.Params.disableThemeToggle) (eq .Site.Params.defaultTheme "auto")) }}