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.
This commit is contained in:
@@ -7,12 +7,13 @@ import "../scss/global.scss";
|
||||
type Props = {
|
||||
readonly description: string;
|
||||
readonly title: string;
|
||||
readonly lang: string;
|
||||
};
|
||||
|
||||
const { title, description } = Astro.props;
|
||||
const { title, description, lang } = Astro.props;
|
||||
---
|
||||
|
||||
<html lang="ru">
|
||||
<html lang={lang}>
|
||||
<Head title={title} description={description} />
|
||||
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user