feat: display post count under category and tag

pull/609/head
Ryan Wang 2022-09-10 23:35:21 +08:00
parent 78794aa6ba
commit 35f51fce2b
2 changed files with 2 additions and 6 deletions

View File

@ -88,12 +88,10 @@ function onDelete(category: CategoryTree) {
</div>
<template #popper> 删除中</template>
</FloatingTooltip>
<!--TODO: Get post count-->
<div
v-if="false"
class="cursor-pointer text-sm text-gray-500 hover:text-gray-900"
>
20 篇文章
{{ category.status?.posts?.length || 0 }} 篇文章
</div>
<time class="text-sm text-gray-500">
{{ formatDatetime(category.metadata.creationTimestamp) }}

View File

@ -211,12 +211,10 @@ onMounted(async () => {
</div>
<template #popper> 删除中</template>
</FloatingTooltip>
<!--TODO: Get post count-->
<div
v-if="false"
class="cursor-pointer text-sm text-gray-500 hover:text-gray-900"
>
20 篇文章
{{ tag.status?.posts?.length || 0 }} 篇文章
</div>
<time class="text-sm text-gray-500">
{{ formatDatetime(tag.metadata.creationTimestamp) }}