From b7c0044f64577ec405a33d4ab7e8a43faa46c823 Mon Sep 17 00:00:00 2001 From: "1152958806@qq.com" <1152958806@qq.com> Date: Mon, 28 Aug 2023 01:43:06 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AF=84=E8=AE=BA500?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/assets/js/utils.js | 2 +- templates/modules/widgets/aside/comments.html | 2 +- templates/modules/widgets/console.html | 2 +- templates/photos.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/assets/js/utils.js b/templates/assets/js/utils.js index 89d0ae52..2bbb75c6 100644 --- a/templates/assets/js/utils.js +++ b/templates/assets/js/utils.js @@ -235,7 +235,7 @@ var btf = { }) } )) - document.querySelectorAll('#article-container .timeline')[0]?.classList.remove("loadings"); + document.querySelectorAll('#article-container .loadings')[0]?.classList.remove("loadings"); }, diffDate: (d, more = false) => { diff --git a/templates/modules/widgets/aside/comments.html b/templates/modules/widgets/aside/comments.html index 9a78d2b8..693afeff 100644 --- a/templates/modules/widgets/aside/comments.html +++ b/templates/modules/widgets/aside/comments.html @@ -7,7 +7,7 @@
diff --git a/templates/modules/widgets/console.html b/templates/modules/widgets/console.html index ff523ad9..e633cfa5 100644 --- a/templates/modules/widgets/console.html +++ b/templates/modules/widgets/console.html @@ -19,7 +19,7 @@ From a605a115c22c21a5e1c1e618a952b0b42dcdf0cf Mon Sep 17 00:00:00 2001 From: "1152958806@qq.com" <1152958806@qq.com> Date: Mon, 28 Aug 2023 02:07:07 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dai=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/modules/head.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/modules/head.html b/templates/modules/head.html index 1833a04b..17dfefa2 100644 --- a/templates/modules/head.html +++ b/templates/modules/head.html @@ -232,7 +232,10 @@ switch: [[${ theme.config.tool.snackbar.switch }]] }, postAi:{ - ai : '[(${post.status.excerpt})]', + ai : [[${htmlType != 'post' || !theme.config.post.aiDescription.aiDescriptionEnable ? '' : + theme.config.post.aiDescription.mode != 'local' && !theme.config.post.aiDescription.switchBtn ? '' : + post.spec.excerpt.autoGenerate ? '本地模式需要自己填写文章摘要' : + #strings.isEmpty(post.status.excerpt) ? '请填写文章摘要' : post.status.excerpt }]], randomNum : [[${theme.config.post.aiDescription.randomNum}]], basicWordCount : [[${theme.config.post.aiDescription.basicWordCount}]], btnLink : "[(${theme.config.post.aiDescription.btnLink})]", From 5b00257060425e3fdb056d08ad51d15e657dc9b6 Mon Sep 17 00:00:00 2001 From: "1152958806@qq.com" <1152958806@qq.com> Date: Mon, 28 Aug 2023 02:07:50 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dai=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/settings.yaml b/settings.yaml index 7c4e0f2e..f2fc1037 100644 --- a/settings.yaml +++ b/settings.yaml @@ -1195,8 +1195,8 @@ spec: value: aiDescriptionEnable: false gptName: - mode: - switchBtn: + mode: local + switchBtn: false btnLink: randomNum: basicWordCount: