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 @@ - +