Skip to content

Commit de28051

Browse files
authored
fix(blog): format published date in blog post list card (#1891)
1 parent a784000 commit de28051

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/components/BlogPostListCard.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ defineProps<{
3333
<!-- Text Content -->
3434
<div class="flex-1 min-w-0 text-start gap-2">
3535
<div class="flex items-center gap-2">
36-
<span class="text-xs text-fg-muted font-mono">{{ published }}</span>
36+
<span class="text-xs text-fg-muted font-mono">
37+
<DateTime :datetime="published" year="numeric" month="short" day="numeric" />
38+
</span>
3739
<span
3840
v-if="draft"
3941
class="text-xs px-1.5 py-0.5 rounded badge-orange font-sans font-medium"

0 commit comments

Comments
 (0)