feat: add post description on desktop home page

This commit is contained in:
radishzzz 2025-03-16 02:15:36 +00:00
parent 5f3d9bc3c2
commit f9c48b2c6f
9 changed files with 27 additions and 22 deletions

View file

@ -40,14 +40,14 @@ const postsByYear = await getPostsByYear(lang)
<main>
<!-- Pinned Posts -->
{pinnedPosts.length > 0 && (
<section class="mb-7.5">
<section class="mb-7.5 lg:mb-9.5">
<div class="uno-decorative-line"></div>
<PostList posts={pinnedPosts} lang={lang} />
</section>
)}
<!-- Regular Posts -->
{[...postsByYear.entries()].map(([_year, posts]) => (
<section class="mb-7.5">
<section class="mb-7.5 lg:mb-9.5">
<div class="uno-decorative-line"></div>
<PostList posts={posts} lang={lang} />
</section>