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)">
|
||||
<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
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user