From e7b35470f0632222fbe47d1abebc97781ae967d9 Mon Sep 17 00:00:00 2001 From: UPToZ Date: Thu, 19 Jun 2025 16:05:11 +0800 Subject: [PATCH] =?UTF-8?q?1.=E7=AE=80=E5=8C=96=E7=95=99=E8=A8=80=E6=9D=BF?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E4=B8=AD=E7=9A=84=E6=AD=A3=E6=96=87=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=202.=E9=80=82=E9=85=8D=E5=8F=8B=E9=93=BE=E8=87=AA?= =?UTF-8?q?=E5=8A=A9=E6=8F=90=E4=BA=A4=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 22 +++++++++++----------- settings.yaml | 28 ++++++++++++++++++---------- templates/comments.html | 4 ++-- templates/macro/content-links.html | 12 +++++++++--- 4 files changed, 40 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index a6ceb3e..8f25ae1 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,6 @@

Halo-Theme-Hao

- ![](https://api.minio.uptoz.cn/blog/images/NsUInjCbZN.webp) @@ -56,17 +55,18 @@ > 部分插件可能已经预设在 Halo 内。 > 部分插件主题尚未适配。 -- 评论功能 plugin-comment-widget -- 搜索功能 plugin-search-widget -- 友链页面 plugin-links -- 瞬间页面 plugin-moments -- 追番插件 plugin-bilibili-bangumi -- 图库插件 plugin-photos -- 装备管理 plugin-equipments +- 评论功能 plugin-comment-widget +- 搜索组件 plugin-search-widget +- 链接管理 plugin-links +- 瞬间页面 plugin-moments +- 追番插件 plugin-bilibili-bangumi +- 图库管理 plugin-photos +- 装备管理 plugin-equipments - Markdown / HTML 内容块插件 plugin-hybrid-edit-block -- 爱发电 plugin-afdian +- 爱发电插件 plugin-afdian +- 友链自助提交插件 link-submit -> 更多插件请参见:https://github.com/halo-sigs/awesome-halo +> 更多插件请参见:https://www.halo.run/store/apps ## 📝 使用 @@ -74,7 +74,7 @@ ## 💰 赞助 -如果我微调后的 Hao主题 对你有帮助,欢迎赞助我 +如果我微调后的 Hao主题 对你有帮助,欢迎赞助我 ### 👍 赞助方式 diff --git a/settings.yaml b/settings.yaml index 74fbf60..41a5601 100644 --- a/settings.yaml +++ b/settings.yaml @@ -1752,6 +1752,13 @@ spec: value: true - label: 隐藏 value: false + - $formkit: attachment + name: backgroundImg + key: backgroundImg + id: backgroundImg + label: 背景图 + value: https://wallpaperaccess.com/full/2157.png + placeholder: 请输入图片地址 - group: todo label: 待办清单 @@ -1876,21 +1883,22 @@ spec: label: 后半部分图片 placeholder: 请输入内容 value: "https://api.minio.uptoz.cn/blog/images/GpohBvaNdR.webp" - - $formkit: repeater - name: messageList + - $formkit: list if: $get(enable_envelope_comment).value + name: message_list label: 正文 + addLabel: 添加标签 + help: 选项是默认给的值 + itemType: string value: - - content: "有什么想问的?" - - content: "有什么想说的?" - - content: "有什么想吐槽的?" - - content: "哪怕是有什么想吃的,都可以告诉我哦~" + - 有什么想问的? + - 有什么想说的? + - 有什么想吐槽的? + - 哪怕是有什么想吃的,都可以告诉我哦~ children: - $formkit: text - name: content - label: 内容 - placeholder: 请输入内容 - value: "有什么想问的?" + index: "$index" + validation: required - $formkit: text name: bottom if: $get(enable_envelope_comment).value diff --git a/templates/comments.html b/templates/comments.html index 555dab2..868dbde 100644 --- a/templates/comments.html +++ b/templates/comments.html @@ -128,9 +128,9 @@ 来自[[${site.title}]]的留言:
+ th:with="message = ${theme.config.envelope_comment.message_list}"> -
[[${data.content}]]
+
[[${data}]]
diff --git a/templates/macro/content-links.html b/templates/macro/content-links.html index 0131e86..d8be475 100644 --- a/templates/macro/content-links.html +++ b/templates/macro/content-links.html @@ -11,9 +11,15 @@ - +