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.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user