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: 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/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})]", 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 @@