diff options
Diffstat (limited to 'src/components/Sections/LatestPosts.astro')
-rw-r--r-- | src/components/Sections/LatestPosts.astro | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/Sections/LatestPosts.astro b/src/components/Sections/LatestPosts.astro index 04ce9fe..070dc46 100644 --- a/src/components/Sections/LatestPosts.astro +++ b/src/components/Sections/LatestPosts.astro @@ -26,7 +26,9 @@ const latestPosts = posts.slice(0, 5); { latestPosts.map((post) => ( <li> - <a href={`/blog/${post.slug}`}>{post.data.title}</a> + <a href={`/blog/${post.slug}`} lang={post.data.lang}> + {post.data.title} + </a> <small>{dayjs(post.data.pubDate.toString()).format("MMMM DD, YYYY")}</small> </li> )) |