feat: make tags display configurable

This commit is contained in:
Erzbir
2025-11-18 14:04:26 +08:00
parent cc6445a0d9
commit 1c5320e584
5 changed files with 15 additions and 9 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
<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:block th:fragment="tag-list(post, show)">
<span class="post-tags" th:if="${show and 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>