34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
---
|
|
import { useTranslations } from '@/i18n/utils'
|
|
import '@/styles/global.css'
|
|
|
|
type Props = {
|
|
title: string
|
|
}
|
|
|
|
const { title } = Astro.props
|
|
const t = useTranslations(Astro.currentLocale)
|
|
---
|
|
|
|
<!doctype html>
|
|
<html lang={Astro.currentLocale}>
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width" />
|
|
<!-- <link rel="icon" type="image/svg+xml" href="/favicon.svg" /> -->
|
|
<meta name="generator" content={Astro.generator} />
|
|
<meta name="description" content={t('seo.meta.description')} />
|
|
<meta name="keywords" content={t('seo.meta.keywords')} />
|
|
<meta property="og:title" content={`${title} | ${t('seo.og.title')}`} />
|
|
<meta property="og:description" content={t('seo.og.description')} />
|
|
<meta property="og:type" content="website" />
|
|
<meta property="og:locale" content={Astro.currentLocale} />
|
|
<meta name="robots" content="index, follow" />
|
|
<link rel="canonical" href={Astro.url} />
|
|
<title>{`${title} | ${t('seo.og.title')}`}</title>
|
|
</head>
|
|
<body class="flex flex-col">
|
|
<slot />
|
|
</body>
|
|
</html>
|