diff --git a/components/post-list-item.tsx b/components/post-list-item.tsx index 4a4a8f4..3d75550 100644 --- a/components/post-list-item.tsx +++ b/components/post-list-item.tsx @@ -25,55 +25,53 @@ export function PostListItem({ post }: Props) { return (
  • -
    - - {cover && ( -
    - {/* eslint-disable-next-line @next/next/no-img-element */} - {post.title} +
    + {cover && ( +
    + {/* eslint-disable-next-line @next/next/no-img-element */} + {post.title} +
    + )} +
    + {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, i) => { + const color = + tagColorClasses[i % tagColorClasses.length]; + return ( + + #{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, i) => { - const color = - tagColorClasses[i % tagColorClasses.length]; - return ( - - #{t} - - ); - })} -
    - )} - {excerpt && ( -

    - {excerpt} -

    - )} -
    - + {excerpt && ( +

    + {excerpt} +

    + )} +
  • );