style: adjust tags display

This commit is contained in:
Erzbir
2025-11-18 01:57:38 +08:00
parent b2af6489d3
commit 51429a5722
6 changed files with 37 additions and 34 deletions
+4 -13
View File
@@ -24,19 +24,10 @@
Publish
Time
</time>
<a data-pjax th:href="@{${post.status.permalink}}">
<span class="post-list-title" th:text="${post.spec.title}">Post Title</span>
</a>
<span class="post-tags" th:if="${theme.config.page.archives_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>
</div>
<a data-pjax th:href="@{${post.status.permalink}}"><span class="post-list-title"
th:text="${post.spec.title}">Post Title</span></a>
<th:block th:replace="~{modules/tag-list(post = ${post})}"
th:if="${theme.config.page.archives_tags}"/></div>
</li>
+1 -9
View File
@@ -24,15 +24,7 @@
theme.config.style.custom_time_style : theme.config.style.time_style}__')}">Publish Time</time>
<span class="post-author"
th:with="contributor = ${post.contributors[0]}"
th:text="${contributor.displayName}">Author</span>
</div>
<div 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>
th:text="${contributor.displayName}">Author</span><th:block th:replace="~{modules/tag-list(post = ${post})}"/>
</div>
</header>
<div class="post-excerpt">
+8
View File
@@ -0,0 +1,8 @@
<th:block th:fragment="tag-list(post)">
<span class="post-tags" th:if="${not post.tags.isEmpty()}"><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>
</th:block>
+1 -10
View File
@@ -12,17 +12,8 @@
th:text="${#dates.format(post.spec.publishTime, '__${theme.config.style.time_style == 'custom' ?
theme.config.style.custom_time_style : theme.config.style.time_style}__')}">Publish Time
</time>
<span class="post-author" th:text="${post.owner.displayName}">Author</span>
<span class="post-author" th:text="${post.owner.displayName}">Author</span><th:block th:replace="~{modules/tag-list(post = ${post})}"/>
</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>
</header>
<section class="post-content">
<div th:utext="${post.content.content}" id="content">Post Content</div>