/
superwizard
/
jjoy-site
Обзор
Документация
Войти
/
superwizard
/
jjoy-site
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
develop
src/components/BaseHead.astro
40 строк
1 KB
Denis Burlaka
К страницам добавлен тег description
30 авг 2025, 19:04
30 авг 2025, 19:04
6bd7478
Код
Авторство
О чём код?
--- // Import the global.css file here so that it is included on // all pages through the use of the <BaseHead /> component. import { SITE_TITLE } from '../consts'; interface Props { title: string; description: string; image?: ImageMetadata; } const canonicalURL = new URL(Astro.url.pathname, Astro.site); const { title, description } = Astro.props; --- <!-- Global Metadata --> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width,initial-scale=1" /> <link rel="icon" type="image/svg+xml" href="/favicon.svg" /> <link rel="sitemap" href="/sitemap-index.xml" /> <link rel="alternate" type="application/rss+xml" title={SITE_TITLE} href={new URL('rss.xml', Astro.site)} /> <meta name="generator" content={Astro.generator} /> <!-- Font preloads --> <link rel="preload" href="/fonts/atkinson-regular.woff" as="font" type="font/woff" crossorigin /> <link rel="preload" href="/fonts/atkinson-bold.woff" as="font" type="font/woff" crossorigin /> <!-- Canonical URL --> <link rel="canonical" href={canonicalURL} /> <!-- Primary Meta Tags --> <title>{title}</title> <meta name="title" content={title} /> <meta name="description" content={description} />