From ef395a0c24fb8c87af609adb8bd7b68f851de097 Mon Sep 17 00:00:00 2001 From: AirboZH Date: Mon, 11 Mar 2024 00:25:19 +0800 Subject: [PATCH 1/2] fix: fix comment widget attr --- templates/page.html | 10 ++-------- templates/post.html | 8 +------- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/templates/page.html b/templates/page.html index e783bc2..39fbd34 100644 --- a/templates/page.html +++ b/templates/page.html @@ -19,15 +19,9 @@

[[${singlePage.spec.title}]]

+ />
diff --git a/templates/post.html b/templates/post.html index acc812e..8e74249 100644 --- a/templates/post.html +++ b/templates/post.html @@ -192,13 +192,7 @@

[[${post.spec.title}]]

group="content.halo.run" kind="Post" th:attr="name=${post.metadata.name}" - colorScheme=" - (()=>{ - if(document.documentElement.getAttribute('data-mode')) - return document.documentElement.getAttribute('data-mode') - return window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark' - })() - "/> + /> From 7d72a73092ea31efbc6729e66471e5722e780f60 Mon Sep 17 00:00:00 2001 From: AirboZH Date: Mon, 11 Mar 2024 00:27:08 +0800 Subject: [PATCH 2/2] release: release 1.4.3 --- package.json | 2 +- theme.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 08faf54..10b693e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "halo-theme-chirpy", - "version": "1.4.2", + "version": "1.4.3", "description": "A minimal, responsive and feature-rich Halo theme for technical writing.", "scripts": { "build": "cross-env NODE_ENV=prod node mode.js && vite build", diff --git a/theme.yaml b/theme.yaml index dbdc67c..d9a11f6 100644 --- a/theme.yaml +++ b/theme.yaml @@ -18,5 +18,5 @@ spec: repo: https://github.com/AirboZH/halo-theme-chirpy.git settingName: "halo-theme-chirpy-setting" configMapName: "halo-theme-chirpy-configMap" - version: 1.4.2 + version: 1.4.3 require: ">=2.0.0"