fix: 修复侧栏分类组件不能正常显示的问题
This commit is contained in:
parent
db20a5cd1d
commit
3cd5911bef
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue