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
+6
View File
@@ -0,0 +1,6 @@
<th:block th:fragment="comment(group, kind, name)">
<section 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>
</th:block>
+4 -4
View File
@@ -1,6 +1,6 @@
<th:block th:fragment="footer">
<div class="footer-inner">
<section class="footer-copyright-engine">
<div class="footer-copyright-engine">
<span>Powered by&nbsp;</span>
<span>
<a target="_blank" href="http://www.halo.run">Halo</a>
@@ -8,8 +8,8 @@
<span>&nbsp;::&nbsp;</span>
<span>Theme&nbsp;</span>
<a target="_blank" href="https://github.com/Erzbir/halo-theme-terminal">Terminal</a>
</section>
<section class="footer-copyright-site">
</div>
<div class="footer-copyright-site">
<div class="footer-user">
<span>©&nbsp;</span>
<span th:text="${#dates.year(#dates.createNow())}">2025</span>
@@ -31,7 +31,7 @@
</p>
</div>
</section>
</div>
</div>
<halo:footer/>
</th:block>
+18 -20
View File
@@ -77,29 +77,27 @@
<body>
<div class="page">
<header>
<div id="header-slot"></div>
<header role="banner">
<div id="header-slot" aria-hidden="true"></div>
</header>
<div class="main-wrapper">
<div class="layout-wrapper">
<aside class="sidebar-left">
</aside>
<main class="center container">
<header class="header">
<th:block th:replace="~{modules/header :: header(isHome = true)}"/>
</header>
<div class="content">
<th:block th:replace="${content}"/>
</div>
</main>
<aside class="sidebar-right">
</aside>
</div>
<div class="wrapper">
<aside class="sidebar-left">
</aside>
<main class="container" role="main">
<header class="header">
<th:block th:replace="~{modules/header :: header(isHome = true)}"/>
</header>
<div class="content">
<th:block th:replace="${content}"/>
</div>
</main>
<aside class="sidebar-right">
</aside>
</div>
<footer class="footer">
<div id="footer-slot-fist"></div>
<footer class="footer" role="contentinfo">
<div id="footer-slot-fist" aria-hidden="true"></div>
<th:block th:replace="~{modules/footer}"/>
<div id="footer-slot-last"></div>
<div id="footer-slot-last" aria-hidden="true"></div>
</footer>
</div>
</body>