mirror of
https://github.com/halo-dev/theme-earth.git
synced 2025-10-14 06:21:09 +00:00
fix: missing post count display in category listing
Signed-off-by: Ryan Wang <i@ryanc.cc>
This commit is contained in:
@@ -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>
|
||||
|
@@ -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>
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user