1.简化留言板模块中的正文配置
2.适配友链自助提交插件
This commit is contained in:
parent
ba696b6867
commit
e7b35470f0
22
README.md
22
README.md
@ -4,7 +4,6 @@
|
||||
<!-- 主题名称 -->
|
||||
<h1>Halo-Theme-Hao</h1>
|
||||
</div>
|
||||
|
||||
<!-- 主题预览图 -->
|
||||

|
||||
|
||||
@ -56,17 +55,18 @@
|
||||
> 部分插件可能已经预设在 Halo 内。
|
||||
> 部分插件主题尚未适配。
|
||||
|
||||
- 评论功能 <a href="https://github.com/halo-sigs/plugin-comment-widget/releases" target="_blank" rel="noopener noreferrer">plugin-comment-widget</a>
|
||||
- 搜索功能 <a href="https://github.com/halo-sigs/plugin-search-widget/releases" target="_blank" rel="noopener noreferrer">plugin-search-widget</a>
|
||||
- 友链页面 <a href="https://github.com/halo-sigs/plugin-links" target="_blank" rel="noopener noreferrer">plugin-links</a>
|
||||
- 瞬间页面 <a href="https://github.com/halo-sigs/plugin-moments" target="_blank" rel="noopener noreferrer">plugin-moments</a>
|
||||
- 追番插件 <a href="https://github.com/Roozenlz/plugin-bilibili-bangumi" target="_blank" rel="noopener noreferrer">plugin-bilibili-bangumi</a>
|
||||
- 图库插件 <a href="https://github.com/halo-sigs/plugin-photos" target="_blank" rel="noopener noreferrer">plugin-photos</a>
|
||||
- 装备管理 <a href="https://github.com/chengzhongxue/plugin-equipment" target="_blank" rel="noopener noreferrer">plugin-equipments</a>
|
||||
- 评论功能 <a href="https://www.halo.run/store/apps/app-YXyaD" target="_blank" rel="noopener noreferrer">plugin-comment-widget</a>
|
||||
- 搜索组件 <a href="https://www.halo.run/store/apps/app-DlacW" target="_blank" rel="noopener noreferrer">plugin-search-widget</a>
|
||||
- 链接管理 <a href="https://www.halo.run/store/apps/app-hfbQg" target="_blank" rel="noopener noreferrer">plugin-links</a>
|
||||
- 瞬间页面 <a href="https://www.halo.run/store/apps/app-SnwWD" target="_blank" rel="noopener noreferrer">plugin-moments</a>
|
||||
- 追番插件 <a href="https://www.halo.run/store/apps/app-OTFPN" target="_blank" rel="noopener noreferrer">plugin-bilibili-bangumi</a>
|
||||
- 图库管理 <a href="https://www.halo.run/store/apps/app-BmQJW" target="_blank" rel="noopener noreferrer">plugin-photos</a>
|
||||
- 装备管理 <a href="https://www.halo.run/store/apps/app-ytygyqml" target="_blank" rel="noopener noreferrer">plugin-equipments</a>
|
||||
- Markdown / HTML 内容块插件 <a href="https://www.halo.run/store/apps/app-NgHnY" target="_blank" rel="noopener noreferrer">plugin-hybrid-edit-block</a>
|
||||
- 爱发电 <a href="https://www.halo.run/store/apps/app-oXvZp" target="_blank" rel="noopener noreferrer">plugin-afdian</a>
|
||||
- 爱发电插件 <a href="https://www.halo.run/store/apps/app-oXvZp" target="_blank" rel="noopener noreferrer">plugin-afdian</a>
|
||||
- 友链自助提交插件 <a href="https://www.halo.run/store/apps/app-glejqzwk" target="_blank" rel="noopener noreferrer">link-submit</a>
|
||||
|
||||
> 更多插件请参见:https://github.com/halo-sigs/awesome-halo
|
||||
> 更多插件请参见:https://www.halo.run/store/apps
|
||||
|
||||
## 📝 使用
|
||||
|
||||
@ -74,7 +74,7 @@
|
||||
|
||||
## 💰 赞助
|
||||
|
||||
如果我微调后的 Hao主题 对你有帮助,欢迎<a href="https://afdian.net/a/uptoz" target="_blank" rel="noopener noreferrer">赞助我</a>
|
||||
如果我微调后的 Hao主题 对你有帮助,欢迎<a href="https://ifdian.net/a/uptoz" target="_blank" rel="noopener noreferrer">赞助我</a>
|
||||
|
||||
### 👍 赞助方式
|
||||
|
||||
|
@ -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
|
||||
|
@ -128,9 +128,9 @@
|
||||
来自[[${site.title}]]的留言:</h3>
|
||||
<div class="comments"
|
||||
style="text-align:center;border-bottom:#ddd 1px solid;border-left:#ddd 1px solid;padding-bottom:20px;background-color:#eee;margin:15px 0;padding-left:20px;padding-right:20px;border-top:#ddd 1px solid;border-right:#ddd 1px solid;padding-top:20px"
|
||||
th:with="message = ${theme.config.envelope_comment.messageList}">
|
||||
th:with="message = ${theme.config.envelope_comment.message_list}">
|
||||
|
||||
<div th:each="data : ${message}">[[${data.content}]]</div>
|
||||
<div th:each="data : ${message}">[[${data}]]</div>
|
||||
|
||||
</div>
|
||||
<div class="bottomcontent" style="text-align:center;margin-top:40px">
|
||||
|
@ -11,9 +11,15 @@
|
||||
<i class="haofont hao-icon-paper-plane1"></i>
|
||||
<span class="banner-button-text">随机访问</span>
|
||||
</a>
|
||||
<a class="banner-button" href="#post-comment" rel="external nofollow">
|
||||
<i class="haofont hao-icon-link"></i>
|
||||
<span class="banner-button-text">申请友链</span>
|
||||
<a th:unless="${pluginFinder.available('link-submit')}" class="banner-button" href="#post-comment"
|
||||
rel="external nofollow">
|
||||
<i class="haofont hao-icon-link"></i>
|
||||
<span class="banner-button-text">申请友链</span>
|
||||
</a>
|
||||
<a th:if="${pluginFinder.available('link-submit')}" class="banner-button"
|
||||
href="javascript:LinkSubmitWidget.open()" rel="external nofollow">
|
||||
<i class="haofont hao-icon-link"></i>
|
||||
<span class="banner-button-text">申请友链</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="tags-group-all nowrapMove">
|
||||
|
Loading…
Reference in New Issue
Block a user