From abbbfc0f3df363b95cbb53765c04d5847dae1cd6 Mon Sep 17 00:00:00 2001 From: j m <1406993111@qq.com> Date: Sun, 21 Apr 2024 08:03:18 +0800 Subject: [PATCH] 1.0.7 --- package.json | 2 +- templates/widget/tagcloud.html | 2 +- theme.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index bd839e9..545f831 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "halo-theme-dream2.0-plus", - "version": "1.0.6", + "version": "1.0.7", "description": "梦之城,童话梦境,动漫类型博客主题。", "main": "index.js", "author": "nineya", diff --git a/templates/widget/tagcloud.html b/templates/widget/tagcloud.html index f2449b9..60aed7a 100644 --- a/templates/widget/tagcloud.html +++ b/templates/widget/tagcloud.html @@ -17,7 +17,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 +';' : ''}"> diff --git a/theme.yaml b/theme.yaml index a8318b8..8d2bb7d 100644 --- a/theme.yaml +++ b/theme.yaml @@ -28,6 +28,6 @@ spec: settingName: theme-dream-setting configMapName: theme-dream-configMap # 版本号 - version: 1.0.6.10002 + version: 1.0.7 # 最低支持的 Halo 版本 require: ">=2.6.0" \ No newline at end of file