From a7f486fa7aa054d1b137bd395c9634f6a2f3bd05 Mon Sep 17 00:00:00 2001 From: Jan van Gemert Date: Mon, 21 Jul 2025 16:27:21 +0200 Subject: [PATCH] keep dark mode inside the (site.enable_darkmode) conditional (#3233) Hi, I noticed some weird behavior when I turned dark mode off (some of the text seemed to disappear, it became white :) ) I traced it to: {% if site.enable_darkmode %} in head.liquid where some darkmode features are place before the if statement. When putting it inside the if statement then the weird behavior was solved; see the pull request here :) Cheers, Jan --- _includes/head.liquid | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_includes/head.liquid b/_includes/head.liquid index b869095..69e99de 100644 --- a/_includes/head.liquid +++ b/_includes/head.liquid @@ -69,9 +69,9 @@ - - {% if site.enable_darkmode %} + +