mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-16 11:41:17 +02:00
feat: add post description on desktop home page
This commit is contained in:
parent
5f3d9bc3c2
commit
f9c48b2c6f
9 changed files with 27 additions and 22 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue