修复 侧边栏配置的“分类”和“标签”模块

This commit is contained in:
sunheyi 2023-01-17 16:37:06 +08:00
parent 1c2002eebb
commit d6496ef859
2 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@
<ul class="card-category-list">
<li class="card-category-list-item" th:each="category,iterStat : ${categories}">
<a class="card-category-list-link" th:href="@{${category.status.permalink}}"
th:if="${categoryQuantity >= 0 && iterStat.index < categoryQuantity}">
th:if="${categoryQuantity >= 0 && iterStat.index < categoryQuantity || categoryQuantity < 0}">
<span class="card-category-list-name" th:text="${category.spec.displayName}"
th:title="${category.spec.displayName}"></span>
<span class="card-category-list-count" th:text="${category.status.postCount}"></span>
@ -20,4 +20,4 @@
</div>
</div>
</html>
</html>

View File

@ -9,7 +9,7 @@
<div class="card-tag-cloud">
<a style="font-size:1em;color:#d3d3d3" th:each="tag,iterStat : ${tags}"
th:href="@{${tag.status.permalink}}"
th:if="${tagQuantity >= 0 && iterStat.index < tagQuantity}"
th:if="${tagQuantity >= 0 && iterStat.index < tagQuantity || categoryQuantity < 0}"
th:title="${tag.spec.displayName}">
<!-- 角标 -->
[[${tag.spec.displayName}]]<sup th:text="${tag.status.postCount}"></sup>
@ -20,4 +20,4 @@
</th:block>
</html>
</html>