fix: missing post count display in category listing

Signed-off-by: Ryan Wang <i@ryanc.cc>
This commit is contained in:
Ryan Wang
2024-11-16 10:28:03 +08:00
parent 4d8475cfc0
commit 9389e5d045
3 changed files with 3 additions and 3 deletions

View File

@@ -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>

View File

@@ -12,7 +12,7 @@
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>

View File

@@ -22,7 +22,7 @@
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>