File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 8
8
< div class ="post ">
9
9
< h1
10
10
class ="post-title "
11
- th:text ="'分类:'+${category.spec.displayName}+' ('+${category.status.visiblePostCount}+' 篇文章)' "
11
+ th:text ="'分类:'+${category.spec.displayName}+' ('+${category.status.visiblePostCount?:0 }+' 篇文章)' "
12
12
>
13
13
分类:分类名 (n 篇文章)
14
14
</ h1 >
Original file line number Diff line number Diff line change 1
1
< ul th:fragment ="next (categories) ">
2
2
< li th:fragment ="single (categories) " th:each ="category : ${categories} ">
3
3
< a th:href ="@{${category.status.permalink}} ">
4
- < span th:text ="${category.spec.displayName}+' ('+${category.status.visiblePostCount}+' 篇文章)' "> </ span >
4
+ < span th:text ="${category.spec.displayName}+' ('+${category.status.visiblePostCount?:0 }+' 篇文章)' "> </ span >
5
5
</ a >
6
6
< th:block th:if ="${not #lists.isEmpty(category.children)} ">
7
7
< th:block th:replace ="~{modules/category-tree :: next (categories=${category.children})} "> </ th:block >
Original file line number Diff line number Diff line change 8
8
< div class ="post ">
9
9
< h1
10
10
class ="post-title "
11
- th:text ="'标签:'+${tag.spec.displayName}+' ('+${tag.status.visiblePostCount}+' 篇文章)' "
11
+ th:text ="'标签:'+${tag.spec.displayName}+' ('+${tag.status.visiblePostCount?:0 }+' 篇文章)' "
12
12
>
13
13
标签:标签名 (n 篇文章)
14
14
</ h1 >
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ <h1 class="post-title">所有标签</h1>
11
11
< li th:each ="tag: ${tags} " class ="tag-list ">
12
12
< a
13
13
th:href ="@{${tag.status.permalink}} "
14
- th:text ="${tag.spec.displayName}+' ('+${tag.status.visiblePostCount}+' 篇文章)' "
14
+ th:text ="${tag.spec.displayName}+' ('+${tag.status.visiblePostCount?:0 }+' 篇文章)' "
15
15
>
16
16
标签名 (n 篇文章)
17
17
</ a >
You can’t perform that action at this time.
0 commit comments