From 16fa8a3b5de7dd7c4fa763fecbba0063f6b4369b Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 11 Jun 2025 17:49:14 +0000 Subject: 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. --- src/components/Analytics.astro | 2 +- src/components/Comments.astro | 1 + src/components/Header.astro | 4 ++-- src/components/PostElement.astro | 4 ++-- src/components/Sections/LatestPosts.astro | 4 +++- src/components/Sections/SocialLinks.astro | 6 +++--- src/components/Sections/Welcome.astro | 5 +---- src/content/blog/create-lib-file-from-dll.md | 1 + src/content/blog/electron-reload.md | 1 + src/content/blog/example-content.md | 1 + src/content/blog/getting-source-code-of-chromium.md | 1 + src/content/blog/installing-moodle-to-fedora.md | 1 + src/content/blog/rust-and-tl-mr3020.md | 1 + src/content/config.ts | 1 + src/env.d.ts | 9 +++++++++ src/layouts/BaseLayout.astro | 5 +++-- src/pages/404.astro | 3 ++- src/pages/blog/[...slug].astro | 5 +++-- src/pages/blog/index.astro | 13 +++++++++---- src/pages/feed.xml.js | 2 +- src/pages/index.astro | 7 ++++--- 21 files changed, 51 insertions(+), 26 deletions(-) create mode 100644 src/env.d.ts (limited to 'src') diff --git a/src/components/Analytics.astro b/src/components/Analytics.astro index 8235dea..3be88c7 100644 --- a/src/components/Analytics.astro +++ b/src/components/Analytics.astro @@ -1,2 +1,2 @@ - + diff --git a/src/components/Comments.astro b/src/components/Comments.astro index 5474d89..c2d6531 100644 --- a/src/components/Comments.astro +++ b/src/components/Comments.astro @@ -15,6 +15,7 @@ const theme = "transparent_dark";