From 6f7f36e01011323a7c229f74abb38b518aee7c19 Mon Sep 17 00:00:00 2001 From: nineya <361654768@qq.com> Date: Mon, 4 Dec 2023 15:12:26 +0800 Subject: [PATCH] =?UTF-8?q?feat(links):=20=E6=B7=BB=E5=8A=A0=E6=9C=80?= =?UTF-8?q?=E8=BF=91=E8=AF=84=E8=AE=BA=E4=BE=A7=E8=BE=B9=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=EF=BC=8C=E5=8F=8B=E9=93=BE=E7=95=8C=E9=9D=A2=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E4=B8=8D=E6=8C=87=E5=AE=9A=E8=AF=84=E8=AE=BA=E5=8C=BAid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings.yaml | 9 ++++++++- templates/links.html | 4 ++-- templates/widget/recent_comments.html | 27 +++++++++++++++++++++++++++ 3 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 templates/widget/recent_comments.html diff --git a/settings.yaml b/settings.yaml index 33382d6..7569110 100644 --- a/settings.yaml +++ b/settings.yaml @@ -551,6 +551,8 @@ spec: label: 广告模块 - value: 'recent_posts' label: 最近文章模块 + - value: 'recent_comments' + label: 最近评论模块 - value: 'categories' label: 文章分类模块 - value: 'tags' @@ -770,6 +772,11 @@ spec: label: 侧边栏最近文章-展示文章数量 placeholder: 请输入数量数值 value: 5 + - $formkit: number + name: recent_comments_num + label: 侧边栏最近评论-展示评论数量 + placeholder: 请输入数量数值 + value: 5 - $formkit: radio name: categories_more label: 侧边栏分类-显示”更多”按钮 @@ -868,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 baa3ef6..4e5398d 100644 --- a/templates/links.html +++ b/templates/links.html @@ -1,7 +1,7 @@ + th:with="baseEnableComment = true">
@@ -48,7 +48,7 @@

评论

-
+
\ No newline at end of file diff --git a/templates/widget/recent_comments.html b/templates/widget/recent_comments.html new file mode 100644 index 0000000..96fba3d --- /dev/null +++ b/templates/widget/recent_comments.html @@ -0,0 +1,27 @@ +
+
+ 最新评论 +
+
暂无评论
+
+ +
+
\ No newline at end of file