This commit is contained in:
j m 2024-05-07 13:01:30 +08:00
parent 891d82dcd7
commit f6d5d45f8c
4 changed files with 49 additions and 22 deletions

View File

@ -49,13 +49,22 @@
</div> </div>
<div class="card card-content comment-wrapper-z-index" id="comment-wrapper" th:if="${enableComment}"> <div class="card card-content comment-wrapper-z-index" id="comment-wrapper" th:if="${enableComment}">
<h3 class="comment-title">评论</h3> <h3 class="comment-title">评论</h3>
<comment-widget <th:block th:if="${theme.config.enhance.enable_pjax}">
group="content.halo.run" <comment-widget
kind="SinglePage" group="content.halo.run"
version="v1alpha1" kind="SinglePage"
th:name="${theme.config.page_config.link_comment_id}" version="v1alpha1"
with-replies="false" th:name="${theme.config.page_config.link_comment_id}"
></comment-widget> with-replies="false"
></comment-widget>
</th:block>
<th:block th:unless="${theme.config.enhance.enable_pjax}">
<halo:comment
group="content.halo.run"
kind="SinglePage"
th:attr="name=${theme.config.page_config.link_comment_id}"
/>
</th:block>
</div> </div>
</th:block> </th:block>
</th:block> </th:block>

View File

@ -92,12 +92,21 @@
<div class="card card-content comment-wrapper-z-index" id="comment-wrapper" th:if="${enableComment}"> <div class="card card-content comment-wrapper-z-index" id="comment-wrapper" th:if="${enableComment}">
<h3 class="comment-title">评论</h3> <h3 class="comment-title">评论</h3>
<comment-widget <th:block th:if="${theme.config.enhance.enable_pjax}">
group="content.halo.run" <comment-widget
th:kind="${type}" group="content.halo.run"
version="v1alpha1" th:kind="${type}"
th:name="${post.metadata.name}" version="v1alpha1"
with-replies="false" th:name="${post.metadata.name}"
></comment-widget> with-replies="false"
></comment-widget>
</th:block>
<th:block th:unless="${theme.config.enhance.enable_pjax}">
<halo:comment
group="content.halo.run"
th:kind="${type}"
th:attr="name=${post.metadata.name}"
/>
</th:block>
</div> </div>
</th:block> </th:block>

View File

@ -57,13 +57,22 @@
</div> </div>
</div> </div>
<div class="journal-comment comment-wrapper-z-index" th:if="${enableComment}"> <div class="journal-comment comment-wrapper-z-index" th:if="${enableComment}">
<comment-widget <th:block th:if="${theme.config.enhance.enable_pjax}">
group="moment.halo.run" <comment-widget
kind="Moment" group="moment.halo.run"
version="v1alpha1" kind="Moment"
th:name="${moment.metadata.name}" version="v1alpha1"
with-replies="false" th:name="${moment.metadata.name}"
></comment-widget> with-replies="false"
></comment-widget>
</th:block>
<th:block th:unless="${theme.config.enhance.enable_pjax}">
<halo:comment
group="moment.halo.run"
kind="Moment"
th:attr="name=${moment.metadata.name}"
/>
</th:block>
</div> </div>
</div> </div>
<th:block th:replace="~{main/pagination :: pagination (${moments}, '/moments')}"/> <th:block th:replace="~{main/pagination :: pagination (${moments}, '/moments')}"/>

View File

@ -30,7 +30,7 @@ spec:
settingName: theme-dream2-plus-setting settingName: theme-dream2-plus-setting
configMapName: theme-dream2-plus-configMap configMapName: theme-dream2-plus-configMap
# 版本号 # 版本号
version: 1.2.0.22241 version: 1.2.0.22242
# 最低支持的 Halo 版本 # 最低支持的 Halo 版本
require: ">=2.12.0" require: ">=2.12.0"
# 许可 # 许可