style: refactor layout

This commit is contained in:
Erzbir
2025-08-10 17:21:56 +08:00
parent 9cf5c1540a
commit 66034a343f
16 changed files with 105 additions and 120 deletions
+5 -6
View File
@@ -8,13 +8,12 @@
<header>
<h1 class="post-title" th:text="${singlePage.spec.title}">Post Title</h1>
</header>
<section class="post-content">
<div class="post-content">
<div th:utext="${singlePage.content.content}">Post Content</div>
</section>
</div>
</article>
<section class="comment" th:if="${haloCommentEnabled}">
<h2>Comments</h2>
<halo:comment group="content.halo.run" kind="SinglePage" th:attr="name=${singlePage.metadata.name}"/>
</section>
<th:block
th:replace="~{modules/comment :: comment(group = 'content.halo.run', kind = 'SinglePage', name = ${singlePage.metadata.name})}"
th:if="${haloCommentEnabled}"/>
</th:block>
</html>