From 84ab95cee3e373fbe77efedf0ae9178fb33fb65a Mon Sep 17 00:00:00 2001 From: mjking <1406993111@qq.com> Date: Mon, 29 Jan 2024 17:44:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BE=A7=E8=BE=B9=E6=A0=8F-=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E6=94=AF=E6=8C=81=E6=A0=91=E7=8A=B6=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/widget/categories.html | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) 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)}">