From 7be547c37dad8668fb1b485ef9bc6e3af9594d7a Mon Sep 17 00:00:00 2001 From: Airbo ZH Date: Fri, 24 Feb 2023 16:34:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E9=85=8D=E7=BD=AE=20=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E9=85=8D=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/modules/head.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/modules/head.html b/templates/modules/head.html index d675babc..b5c20b7e 100644 --- a/templates/modules/head.html +++ b/templates/modules/head.html @@ -111,6 +111,11 @@ } else if (t === 'light') activateLightMode() else activateDarkMode() + if("[[${theme.config.style.colorScheme}]]" === 'dark') + activateDarkMode() + if("[[${theme.config.style.colorScheme}]]" === 'light') + activateLightMode() + const asideStatus = saveToLocal.get('aside-status') if (asideStatus !== undefined) { if (asideStatus === 'hide') {