blob: ff58e8205c2eef0bc66ef66f52e47db1ff216e4e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
---
import Footer from '$components/Footer.astro';
import Navbar from '$components/Navbar.astro';
import translate from '$i18n/translate';
import site from '$i18n/translations/site';
import getLocaleFromPath from '$lib/getLocaleFromPath';
interface Props {
title: string;
}
const { title } = Astro.props;
const locale = getLocaleFromPath(Astro.url.pathname);
const t = translate(locale);
---
<!DOCTYPE html>
<html lang="sco">
<head>
<meta charset="UTF-8" />
<meta name="description" content={t(site, { key: 'description' })} />
<meta name="viewport" content="width=device-width" />
<link rel="icon" href="/favicon.ico" />
<link rel="stylesheet" href="/normalize.css" />
<link rel="stylesheet" href="/main.css" />
<meta name="generator" content={Astro.generator} />
<title>{title} | {t(site, { key: 'title' })}</title>
</head>
<body id="top">
<Navbar />
<slot />
<Footer />
</body>
</html>
|