--- import Analytics from "../components/Analytics.astro"; import Head from "../components/Head.astro"; import "../scss/global.scss"; type Props = { readonly description?: string; readonly title?: string; }; const { description, title } = Astro.props; --- <html lang="ru"> <Head description={description ?? import.meta.env.DEFAULT_DESCRIPTION} title={title ?? import.meta.env.DEFAULT_TITLE} /> <body> <main> <slot /> </main> <Analytics title={title ?? import.meta.env.DEFAULT_TITLE} /> </body> </html>