From da831d9c2031903fdee42866f5e5b4d4c9e23ed2 Mon Sep 17 00:00:00 2001 From: nineya <361654768@qq.com> Date: Tue, 5 Dec 2023 10:28:53 +0800 Subject: [PATCH] =?UTF-8?q?feat(comment):=20=E8=B0=83=E6=95=B4=E8=AF=84?= =?UTF-8?q?=E8=AE=BA=E5=8C=BA=E6=98=BE=E7=A4=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings.yaml | 2 +- templates/links.html | 4 ++-- templates/widget/recent_comments.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/settings.yaml b/settings.yaml index 693a59a..2001d5a 100644 --- a/settings.yaml +++ b/settings.yaml @@ -875,7 +875,7 @@ spec: name: link_comment_id label: 友链页面-评论区ID placeholder: '请输入 ID' - help: '友链页面没有 ID,需要指定一个自定义页面的 ID 用于评论,被指定的文章评论区将作为友链的评论区,放空则友链的评论标签将被显示为“未知-未知”。' + help: '友链页面没有 ID,需要指定一个自定义页面的 ID 用于评论,被指定的文章评论区将作为友链的评论区,放空则友链界面不显示评论区。' - $formkit: radio name: enable_tags_tag_color label: 标签页面-开启标签颜色 diff --git a/templates/links.html b/templates/links.html index 4e5398d..0f0858f 100644 --- a/templates/links.html +++ b/templates/links.html @@ -1,7 +1,7 @@ + th:with="baseEnableComment = ${!#strings.isEmpty(theme.config.page_config.link_comment_id)}">
@@ -48,7 +48,7 @@

评论

-
+
\ No newline at end of file diff --git a/templates/widget/recent_comments.html b/templates/widget/recent_comments.html index 96fba3d..7145f64 100644 --- a/templates/widget/recent_comments.html +++ b/templates/widget/recent_comments.html @@ -18,7 +18,7 @@
+ th:with="url = ${comment.spec.subjectRef.kind == 'SinglePage'?(comment.spec.subjectRef.name == theme.config.page_config.link_comment_id?'/links':singlePageFinder.getByName(comment.spec.subjectRef.name).status.permalink):(comment.spec.subjectRef.kind == 'Post'?postFinder.getByName(comment.spec.subjectRef.name).status.permalink:comment.spec.subjectRef.kind == 'Moment'?'/moments':'')}"> [[${comment.spec.content}]]