57 lines
1.7 KiB
Plaintext
57 lines
1.7 KiB
Plaintext
---
|
|
import { SITE_TITLE, SITE_DESCRIPTION } from '@/consts';
|
|
import '@/styles/global.css';
|
|
|
|
interface Props {
|
|
title?: string;
|
|
description?: string;
|
|
image?: string;
|
|
robots?: string;
|
|
}
|
|
|
|
const {
|
|
title,
|
|
description = SITE_DESCRIPTION,
|
|
image = '/og-default.jpg',
|
|
robots = 'index, follow',
|
|
} = Astro.props;
|
|
|
|
const pageTitle = title ? `${title} — OSKVP` : SITE_TITLE;
|
|
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
|
|
---
|
|
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<meta name="robots" content={robots} />
|
|
<link rel="canonical" href={canonicalURL} />
|
|
|
|
<title>{pageTitle}</title>
|
|
<meta name="description" content={description} />
|
|
|
|
<!-- Open Graph -->
|
|
<meta property="og:type" content="website" />
|
|
<meta property="og:url" content={canonicalURL} />
|
|
<meta property="og:title" content={pageTitle} />
|
|
<meta property="og:description" content={description} />
|
|
<meta property="og:image" content={new URL(image, Astro.site)} />
|
|
|
|
<!-- Twitter -->
|
|
<meta name="twitter:card" content="summary_large_image" />
|
|
<meta name="twitter:title" content={pageTitle} />
|
|
<meta name="twitter:description" content={description} />
|
|
<meta name="twitter:image" content={new URL(image, Astro.site)} />
|
|
|
|
<!-- Favicon -->
|
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
|
|
<!-- Fonts -->
|
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
<link
|
|
href="https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500&display=swap"
|
|
rel="stylesheet"
|
|
/>
|
|
|
|
<!-- Sitemap -->
|
|
<link rel="sitemap" href="/sitemap-index.xml" />
|