fix: comment title is still displayed when it is disabled
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<th:block th:fragment="comment(group, kind, name)">
|
<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>
|
<h2 th:text="#{page.post.comment}">Comments</h2>
|
||||||
<halo:comment th:attr="name=${name},kind=${kind},group=${group}"/>
|
<halo:comment th:attr="name=${name},kind=${kind},group=${group}"/>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
+1
-1
@@ -14,6 +14,6 @@
|
|||||||
</article>
|
</article>
|
||||||
<th:block
|
<th:block
|
||||||
th:replace="~{modules/comment :: comment(group = 'content.halo.run', kind = 'SinglePage', name = ${singlePage.metadata.name})}"
|
th:replace="~{modules/comment :: comment(group = 'content.halo.run', kind = 'SinglePage', name = ${singlePage.metadata.name})}"
|
||||||
th:if="${haloCommentEnabled}"/>
|
/>
|
||||||
</th:block>
|
</th:block>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user