diff --git a/components/post-list-item.tsx b/components/post-list-item.tsx index 071a3f5..8a6c647 100644 --- a/components/post-list-item.tsx +++ b/components/post-list-item.tsx @@ -26,31 +26,29 @@ export function PostListItem({ post }: Props) { /> )} -
-
- {post.published_at && ( - - )} - {post.tags && post.tags.length > 0 && ( - - {post.tags.slice(0, 3).map((t) => ( - - #{t} - - ))} - - )} -
-

+
+ {post.published_at && ( +

+ {new Date(post.published_at).toLocaleDateString( + siteConfig.defaultLocale + )} +

+ )} +

{post.title}

+ {post.tags && post.tags.length > 0 && ( +
+ {post.tags.slice(0, 4).map((t) => ( + + #{t} + + ))} +
+ )} {post.description && (

{post.description} @@ -62,4 +60,3 @@ export function PostListItem({ post }: Props) { ); } -