Skip to content

Commit cd7e7f9

Browse files
committed
fix: Dealing with page 404 issues when article tags or categories are empty.
1 parent 32ca6b9 commit cd7e7f9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

templates/modules/post-card.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
class="flex flex-wrap items-center gap-2"
3131
>
3232
<a
33+
th:if="${#lists.size(post.categories)} gt 0"
3334
th:href="@{${post.categories[0].status.permalink}}"
3435
th:title="${post.categories[0].spec.displayName}"
3536
th:text="${post.categories[0].spec.displayName}"
@@ -38,6 +39,7 @@
3839
>
3940
</a>
4041
<a
42+
th:if="${#lists.size(post.tags)} gt 0"
4143
th:each="tag : ${post.tags}"
4244
th:href="@{${tag.status.permalink}}"
4345
th:title="${tag.spec.displayName}"

theme.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ spec:
1313
repo: https://github.com/f2ccloud/theme-ocean.git
1414
settingName: "theme-ocean-setting"
1515
configMapName: "theme-ocean-configMap"
16-
version: 1.4.0
16+
version: 1.4.1
1717
require: ">=2.6.0"

0 commit comments

Comments
 (0)