From 67a574e8d95ae5ecf86a20654198d7ba9a385293 Mon Sep 17 00:00:00 2001 From: ClovertaTheTrilobita Date: Sun, 29 Mar 2026 23:35:27 +0300 Subject: [PATCH] update timeline --- src/components/Posts/PostTimeline.astro | 31 +++++++++++++++---------- 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/src/components/Posts/PostTimeline.astro b/src/components/Posts/PostTimeline.astro index 2a25fb5..dc1e1c2 100644 --- a/src/components/Posts/PostTimeline.astro +++ b/src/components/Posts/PostTimeline.astro @@ -43,18 +43,25 @@ const groupedPosts = filteredPosts.reduce((acc: any[], post: any) => {

{group.month}

- {group.posts.map((post: any) => ( - -

{post.data.title}

-

- {post.data.description} -

-
- ))} + {group.posts.map((post: any) => { + const [postLang, ...slugParts] = post.id.split("/"); + const slug = slugParts.join("/"); + + return ( + +

+ {post.data.title} +

+

+ {post.data.description} +

+
+ ); + })}