aboutsummaryrefslogtreecommitdiff
path: root/src/components/Sections/LatestPosts.astro
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2025-06-11 20:49:14 +0300
committerValentin Popov <valentin@popov.link>2025-06-11 20:49:14 +0300
commit16fa8a3b5de7dd7c4fa763fecbba0063f6b4369b (patch)
tree1f724a4c8a49285f95c480a7da4c2486a93636ee /src/components/Sections/LatestPosts.astro
parent423344fca500ab017c3cb7cb4b53f763400f5186 (diff)
downloadpopov.link-16fa8a3b5de7dd7c4fa763fecbba0063f6b4369b.tar.xz
popov.link-16fa8a3b5de7dd7c4fa763fecbba0063f6b4369b.zip
feat: enhance accessibility and language support across components
- Updated various components to include `lang` attributes for improved accessibility and SEO. - Introduced a new `env.d.ts` file to define environment variables for better type safety. - Adjusted the print width in `.prettierrc.mjs` for improved code formatting. - Streamlined the `Header`, `PostElement`, and `SocialLinks` components for better structure and clarity. - Added language support to blog posts and updated the layout to reflect these changes.
Diffstat (limited to 'src/components/Sections/LatestPosts.astro')
-rw-r--r--src/components/Sections/LatestPosts.astro4
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>
))