From bc5b62c7536f96be9ab5819f2c9d5b0a42713985 Mon Sep 17 00:00:00 2001 From: gbanyan Date: Mon, 17 Nov 2025 18:14:25 +0800 Subject: [PATCH] Reorder and restyle tags in list items --- components/post-list-item.tsx | 45 ++++++++++++++++------------------- 1 file changed, 21 insertions(+), 24 deletions(-) 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) { ); } -