update timeline

This commit is contained in:
ClovertaTheTrilobita 2026-03-29 23:35:27 +03:00
parent f1dd997c9a
commit 67a574e8d9

View file

@ -43,18 +43,25 @@ const groupedPosts = filteredPosts.reduce((acc: any[], post: any) => {
<p class="post-date">{group.month}</p> <p class="post-date">{group.month}</p>
<div class="month-posts"> <div class="month-posts">
{group.posts.map((post: any) => ( {group.posts.map((post: any) => {
<a const [postLang, ...slugParts] = post.id.split("/");
href={`/${lang}/posts/${post.id}/`} const slug = slugParts.join("/");
class="timeline-card"
data-astro-reload return (
> <a
<h2 class="post-title">{post.data.title}</h2> href={`/${lang}/posts/${slug}/`}
<p class="post-description"> class="timeline-card"
{post.data.description} data-astro-reload
</p> >
</a> <h2 class="post-title">
))} {post.data.title}
</h2>
<p class="post-description">
{post.data.description}
</p>
</a>
);
})}
</div> </div>
</div> </div>
</li> </li>