From ab2e78327061d6b3e28089b2aa328496b48ea9e3 Mon Sep 17 00:00:00 2001 From: mjking <1406993111@qq.com> Date: Tue, 7 May 2024 19:59:43 +0800 Subject: [PATCH 1/4] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E4=BA=91=E4=BD=BF=E7=94=A8=E6=95=B0=E9=87=8F=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=87=BA=E7=8E=B0=E7=A9=BA=E6=8C=87=E9=92=88=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/widget/tagcloud.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/widget/tagcloud.html b/templates/widget/tagcloud.html index a631bdc..1d826b1 100644 --- a/templates/widget/tagcloud.html +++ b/templates/widget/tagcloud.html @@ -16,7 +16,7 @@ th:each="tag : ${tags}" th:href="@{${tag.status.permalink}}" th:text="${tag.spec.displayName}" - th:with="size = ${#strings.length(tag.spec.displayName) + #strings.length(tag.spec.slug) + tag.postCount}" + th:with="size = ${#strings.length(tag.spec.displayName) + #strings.length(tag.spec.slug) + (tag.postCount != null ? tag.postCount : 0)}" 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 + From 151258898ae58ddb3a9c6e5d3e6a22aded3023fe Mon Sep 17 00:00:00 2001 From: mjking <1406993111@qq.com> Date: Tue, 7 May 2024 20:00:32 +0800 Subject: [PATCH 2/4] =?UTF-8?q?perf=EF=BC=9A=E4=BC=98=E5=8C=96=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E6=95=B0=E9=87=8F=E6=98=BE=E7=A4=BA=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/tags.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/tags.html b/templates/tags.html index d58f5a7..885f581 100644 --- a/templates/tags.html +++ b/templates/tags.html @@ -16,11 +16,11 @@ - - \ No newline at end of file + From b0eb943ed67afe777954bd2677856efc36d72c3b Mon Sep 17 00:00:00 2001 From: mjking <1406993111@qq.com> Date: Tue, 7 May 2024 20:02:16 +0800 Subject: [PATCH 3/4] =?UTF-8?q?perf=EF=BC=9A=E4=BC=98=E5=8C=96=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E4=B8=8B=E6=96=87=E7=AB=A0=E6=95=B0=E9=87=8F=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/categories.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/categories.html b/templates/categories.html index 37a9db8..fa0c5e4 100644 --- a/templates/categories.html +++ b/templates/categories.html @@ -21,11 +21,11 @@
  • - +
  • - \ No newline at end of file + From e34a88c90450760cae7f10d638f14b0824e0b839 Mon Sep 17 00:00:00 2001 From: mjking <1406993111@qq.com> Date: Tue, 7 May 2024 20:04:45 +0800 Subject: [PATCH 4/4] =?UTF-8?q?perf=EF=BC=9A=E4=BC=98=E5=8C=96=20=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E4=BE=A7=E8=BE=B9=E6=A0=8F=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=20=E6=94=B9=E7=89=88=E9=81=97=E7=95=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/widget/categories.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/widget/categories.html b/templates/widget/categories.html index b608d23..c515a51 100644 --- a/templates/widget/categories.html +++ b/templates/widget/categories.html @@ -1,6 +1,6 @@
    + th:class="'card widget ' + ${sidebar.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)}, isEmpty = ${#lists.isEmpty(categories)}"> @@ -20,4 +20,4 @@
    - \ No newline at end of file +