Skip to content

Commit

Permalink
fix: missing post count display in category listing (#212)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Wang <[email protected]>
  • Loading branch information
ruibaby authored Nov 16, 2024
1 parent 6b3dc79 commit 17d15c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/modules/category-tree.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<span class="text-sm opacity-80 dark:text-slate-50" th:text="${category.spec.displayName}"> </span>
<span
class="rounded bg-gray-100 px-1 py-0.5 text-xs tabular-nums opacity-70 group-hover:bg-white dark:bg-slate-600 dark:text-slate-50 dark:group-hover:bg-slate-500"
th:text="${category.status.visiblePostCount}"
th:text="${category.status.visiblePostCount ?: 0}"
>
</span>
</a>
Expand Down
2 changes: 1 addition & 1 deletion templates/modules/tag-filter.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h2 class="inline-flex items-center gap-2 text-base text-gray-900 dark:text-slat
th:classappend="(${tag} and ${tag.metadata.name == tagItem.metadata.name}) or (not ${tag} and ${tagStat.index == 0}) ? '!border-indigo-400 dark:!border-indigo-200' : ''"
>
<th:block th:text="|#${tagItem.spec.displayName}|" />
<sup th:text="${tagItem.status.visiblePostCount}"></sup>
<sup th:text="${tagItem.status.visiblePostCount ?: 0}"></sup>
</a>
</div>
</div>
2 changes: 1 addition & 1 deletion templates/modules/widgets/tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h2 class="inline-flex items-center gap-2 text-base dark:text-slate-50">
class="inline-flex items-center gap-x-1.5 rounded-full border border-gray-200 bg-white px-2.5 py-1 text-xs font-medium text-gray-800 shadow-sm hover:border-indigo-400 dark:border-slate-800 dark:bg-slate-700 dark:text-slate-200 dark:hover:border-indigo-200"
>
<th:block th:text="|#${tag.spec.displayName}|" />
<sup th:text="${tag.status.visiblePostCount}"></sup>
<sup th:text="${tag.status.visiblePostCount ?: 0}"></sup>
</a>
</div>
</div>

0 comments on commit 17d15c7

Please sign in to comment.