fix: 修复侧栏分类组件不能正常显示的问题

This commit is contained in:
Airbo ZH 2023-01-31 11:42:25 +08:00
parent db20a5cd1d
commit 3cd5911bef
1 changed files with 3 additions and 4 deletions

View File

@ -2,13 +2,12 @@
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<!-- 目录 -->
<div class="card-widget card-categories" th:fragment="categories"
${categoryFinder.list(1, categoryQuantity)}>
th:with="categories = ${categoryFinder.list(1, theme.config.sidebar.categoryQuantity)}">
<div class="item-headline"><i class="iconfont icon-folder-open"></i><span>分类</span></div>
<div class="aside-list">
<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 || categoryQuantity < 0}">
<a class="card-category-list-link" th:href="@{${category.status.permalink}}">
<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 +19,4 @@
</div>
</div>
</html>
</html>