diff --git a/templates/widget/categories.html b/templates/widget/categories.html index aea9ef9..8cb5122 100644 --- a/templates/widget/categories.html +++ b/templates/widget/categories.html @@ -2,22 +2,27 @@ th:fragment="widget (hide)" th:class="'card widget ' + ${hide}" th:with="num = ${#strings.isEmpty(theme.config.sidebar.categories_num)? 10 : T(java.lang.Integer).parseInt(theme.config.sidebar.categories_num)}, - categories = ${categoryFinder.list(1,num)}, + categories = ${categoryFinder.listAsTree()}, isEmpty = ${#lists.isEmpty(categories)}">
分类 - 更多更多
暂无分类
- \ No newline at end of file + diff --git a/templates/widget/tagcloud.html b/templates/widget/tagcloud.html index 42c26c8..7c97c0f 100644 --- a/templates/widget/tagcloud.html +++ b/templates/widget/tagcloud.html @@ -8,7 +8,7 @@
标签云 - 更多 + 更多
暂无标签
@@ -19,4 +19,4 @@ th:with="size = ${#strings.length(tag.spec.displayName) + #strings.length(tag.spec.slug) + tag.postCount}" th:style="'font-size: ' + ${size < 14 ? 14 : size > 32 ? 32 : size} + 'px;' + ${(enableTagsColor && tag.spec.color != '#ffffff')? 'color: ' + tag.spec.color +';' : ''}">
- \ No newline at end of file + diff --git a/templates/widget/tags.html b/templates/widget/tags.html index d08cb49..83f0a98 100644 --- a/templates/widget/tags.html +++ b/templates/widget/tags.html @@ -7,7 +7,7 @@ enableTagsColor = ${theme.config.sidebar.enable_tag_color}">
标签 - 更多 + 更多
暂无标签
@@ -17,4 +17,4 @@ th:text="${tag.spec.displayName}" th:style="${(enableTagsColor && tag.spec.color != '#ffffff')? 'color: ' + tag.spec.color +'; border-color: ' + tag.spec.color +'; background: ' + tag.spec.color +'20;' : ''}">
- \ No newline at end of file +