style: refactor layout and replace fixed spacing with font-relative units

This commit is contained in:
Erzbir
2025-08-05 14:50:52 +08:00
parent 8e3cd1ae8d
commit 6e0c6973f2
15 changed files with 287 additions and 233 deletions
+17 -24
View File
@@ -14,32 +14,25 @@
<h1 class="post-title">
<a data-pjax th:text="${post.spec.title}" th:href="@{${post.status.permalink}}">Post Title</a>
</h1>
<div class="post-meta">
<span class="post-date" th:text="${#dates.format(post.spec.publishTime,'yyyy-MM-dd')}">
Publish Time
</span>
<span
class="post-author"
th:with="contributor = ${post.contributors[0]}"
th:text="${contributor.displayName}"
>Author</span
>
</div>
<span class="post-tags">
<span class="post-tag" th:each="tag : ${post.tags}">
<a data-pjax
th:href="@{${tag.status.permalink}}"
th:title="${tag.spec.displayName}"
th:text="'#'+${tag.spec.displayName}"
>#Tag
</a>
</span>
</span>
<section class="post-meta">
<span class="post-date"
th:text="${#dates.format(post.spec.publishTime,'yyyy-MM-dd')}">Publish Time</span>
<span class="post-author"
th:with="contributor = ${post.contributors[0]}"
th:text="${contributor.displayName}">Author</span>
</section>
<section class="post-tags">
<span class="post-tag" th:each="tag : ${post.tags}">
<a data-pjax
th:href="@{${tag.status.permalink}}"
th:title="${tag.spec.displayName}"
th:text="'#'+${tag.spec.displayName}">#Tag</a>
</span>
</section>
</header>
<section class="post-content">
<p th:text="${post.status.excerpt}">Post Excerpt...</p>
<section class="post-excerpt">
<span th:text="${post.status.excerpt}">Post Excerpt...</span>
</section>
<section>
<a data-pjax class="read-more button inline" th:href="@{${post.status.permalink}}">[Read more]</a>
</section>