移除主题 友链页面-评论区ID 设置项,改为由 链接 提供的评论区配置,需更新 链接插件 >= 1.4.0

This commit is contained in:
j m 2024-06-14 18:58:55 +08:00
parent 1b5fba8cc1
commit 568fdd79aa
3 changed files with 9 additions and 14 deletions

View File

@ -1034,11 +1034,6 @@ spec:
label: 开启 label: 开启
- value: false - value: false
label: 关闭 label: 关闭
- $formkit: singlePageSelect
name: link_comment_id
label: 友链页面-评论区ID
placeholder: '请选择一个页面作为友链页面的评论区ID'
help: '友链页面没有 ID需要指定一个自定义页面的 ID 用于评论,被指定的页面评论区将作为友链的评论区,未选择时则友链界面不显示评论区。'
- $formkit: radio - $formkit: radio
name: enable_tags_tag_color name: enable_tags_tag_color
label: 标签页面-开启标签颜色 label: 标签页面-开启标签颜色

View File

@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<th:block xmlns:th="https://www.thymeleaf.org" <th:block xmlns:th="https://www.thymeleaf.org"
th:insert="~{common/layout :: layout (title = ${#strings.defaultString(linksTitle, '友链')} + ' - ' + ${site.title}, canonical = @{/links}, content = ~{::content}, isPost = false)}" th:insert="~{common/layout :: layout (title = ${#strings.defaultString(linksTitle, '友链')} + ' - ' + ${site.title}, canonical = @{/links}, content = ~{::content}, isPost = false)}"
th:with="baseEnableComment = ${!#strings.isEmpty(theme.config.page_config.link_comment_id) && theme.config.page_config.link_enable_comment}"> th:with="baseEnableComment = ${theme.config.page_config.link_enable_comment}">
<th:block th:fragment="content" <th:block th:fragment="content"
th:with="defaultAvatar = ${#strings.defaultString(theme.config.page_config.links_default_avatar, #theme.assets('/img/avatar.svg'))}"> th:with="defaultAvatar = ${#strings.defaultString(theme.config.page_config.links_default_avatar, #theme.assets('/img/avatar.svg'))}">
<div class="card"> <div class="card">
@ -51,18 +51,18 @@
<h3 class="comment-title">评论</h3> <h3 class="comment-title">评论</h3>
<th:block th:if="${theme.config.enhance.enable_pjax}"> <th:block th:if="${theme.config.enhance.enable_pjax}">
<comment-widget <comment-widget
group="content.halo.run" group="plugin.halo.run"
kind="SinglePage" kind="Plugin"
version="v1alpha1" version="v1alpha1"
th:name="${theme.config.page_config.link_comment_id}" th:name="${pluginName}"
with-replies="false" with-replies="false"
></comment-widget> ></comment-widget>
</th:block> </th:block>
<th:block th:unless="${theme.config.enhance.enable_pjax}"> <th:block th:unless="${theme.config.enhance.enable_pjax}">
<halo:comment <halo:comment
group="content.halo.run" group="plugin.halo.run"
kind="SinglePage" kind="Plugin"
th:attr="name=${theme.config.page_config.link_comment_id}" th:attr="name=${pluginName}"
/> />
</th:block> </th:block>
</div> </div>

View File

@ -30,9 +30,9 @@ spec:
settingName: theme-dream2-plus-setting settingName: theme-dream2-plus-setting
configMapName: theme-dream2-plus-configMap configMapName: theme-dream2-plus-configMap
# 版本号 # 版本号
version: 0.0.0.13 version: 0.0.0.15
# 最低支持的 Halo 版本 # 最低支持的 Halo 版本
require: ">=2.12.0" require: ">=2.15.0"
# 许可 # 许可
license: license:
- name: "MIT" - name: "MIT"