diff options
author | Valentin Popov <valentin@popov.link> | 2025-06-11 20:20:43 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2025-06-11 20:20:43 +0300 |
commit | 423344fca500ab017c3cb7cb4b53f763400f5186 (patch) | |
tree | b2e1f7df9dd767ca89fd3b1e30c30dadc0a56bfa /src/layouts | |
parent | 78a9c2abc56d47637eaa46eb1ce99b682d7bde0d (diff) | |
download | popov.link-423344fca500ab017c3cb7cb4b53f763400f5186.tar.xz popov.link-423344fca500ab017c3cb7cb4b53f763400f5186.zip |
chore: remove unused environment variables and update layout components
- Deleted the .env and src/env.d.ts files as they are no longer needed.
- Updated BaseLayout to require title and description props directly, ensuring better clarity in component usage.
- Adjusted various pages to pass explicit title and description values, enhancing SEO and user experience.
- Increased print width in .prettierrc.mjs for improved code formatting.
Diffstat (limited to 'src/layouts')
-rw-r--r-- | src/layouts/BaseLayout.astro | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index 8ed13fd..908078e 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -5,18 +5,15 @@ import Header from "../components/Header.astro"; import "../scss/global.scss"; type Props = { - readonly description?: string; - readonly title?: string; + readonly description: string; + readonly title: string; }; -const { description, title } = Astro.props; +const { title, description } = Astro.props; --- <html lang="ru"> - <Head - title={title ?? import.meta.env.DEFAULT_TITLE} - description={description ?? import.meta.env.DEFAULT_DESCRIPTION} - /> + <Head title={title} description={description} /> <body> <main> |