From 665949d7c12f0ab809424ffb4b8584ac065927fd Mon Sep 17 00:00:00 2001 From: MG-5 Date: Wed, 1 Nov 2023 14:34:55 +0100 Subject: [PATCH 1/2] Revert "Merge pull request #59 from netz39/auto-darkmode" This reverts commit 0df7b9dd965d6256ee1630cabbe8ab1b7ac33809, reversing changes made to c01b9d499c6a97babf364492f0ab6c0bf6260ba2. --- _includes/default/head.liquid | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/_includes/default/head.liquid b/_includes/default/head.liquid index b9e2f4f..0340feb 100644 --- a/_includes/default/head.liquid +++ b/_includes/default/head.liquid @@ -2,25 +2,16 @@ - + {% if site.color_theme == 'auto' %} {% else %} {% endif %} From 7c4b2b77d7afa79839342980e8f75f4ad6331fd4 Mon Sep 17 00:00:00 2001 From: MG-5 Date: Wed, 1 Nov 2023 14:48:52 +0100 Subject: [PATCH 2/2] Fix auto darkmode is overwritten by light mode --- assets/js/main.min.js | 2 +- assets/js/partials/dark-mode.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/js/main.min.js b/assets/js/main.min.js index a33eb8a..52ead77 100644 --- a/assets/js/main.min.js +++ b/assets/js/main.min.js @@ -1,5 +1,5 @@ /* @preserve Cookie Consent Init */ function createCookie(e,t,o){var n="";if(o){var i=new Date;i.setTime(i.getTime()+24*o*60*60*1e3),n="; expires="+i.toUTCString()}document.cookie=`${e}=${t}${n}; path=/`}function readCookie(e){for(var t=e+"=",o=document.cookie.split(";"),n=0;n