fix: comment title is still displayed when it is disabled

This commit is contained in:
Erzbir
2025-12-13 13:51:23 +08:00
parent bbc0da47db
commit b4ffb9e612
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
<th:block th:fragment="comment(group, kind, name)">
<section class="comment" th:attr="name=${name},kind=${kind},group=${group}">
<section th:if="${haloCommentEnabled}" class="comment" th:attr="name=${name},kind=${kind},group=${group}">
<h2 th:text="#{page.post.comment}">Comments</h2>
<halo:comment th:attr="name=${name},kind=${kind},group=${group}"/>
</section>
+1 -1
View File
@@ -14,6 +14,6 @@
</article>
<th:block
th:replace="~{modules/comment :: comment(group = 'content.halo.run', kind = 'SinglePage', name = ${singlePage.metadata.name})}"
th:if="${haloCommentEnabled}"/>
/>
</th:block>
</html>