diff --git a/src/components/ArticleCard.vue b/src/components/ArticleCard.vue
index 46af432..c07f48d 100644
--- a/src/components/ArticleCard.vue
+++ b/src/components/ArticleCard.vue
@@ -25,7 +25,7 @@ function coverSrc(): string | undefined {
diff --git a/src/components/ArticleMetaBar.vue b/src/components/ArticleMetaBar.vue
index 9e9620e..f60d820 100644
--- a/src/components/ArticleMetaBar.vue
+++ b/src/components/ArticleMetaBar.vue
@@ -6,15 +6,17 @@ const props = withDefaults(
defineProps<{
createdAt?: string
viewCount?: number
+ starCount?: number
content?: string
mode?: 'card' | 'detail'
}>(),
- { createdAt: '', viewCount: 0, content: '', mode: 'card' }
+ { createdAt: '', viewCount: 0, starCount: 0, content: '', mode: 'card' }
)
const day = computed(() => (props.createdAt ? formatDay(props.createdAt) : ''))
const duration = computed(() => estimateReadingTime(props.content ?? ''))
const showView = computed(() => props.mode === 'detail')
+const showDuration = computed(() => props.mode === 'detail')
@@ -35,13 +37,19 @@ const showView = computed(() => props.mode === 'detail')
{{ viewCount }}
-
+
{{ duration }}
+
+
+ {{ starCount }}
+