style: refactor layout and replace fixed spacing with font-relative units
This commit is contained in:
+17
-24
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user