diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-05 21:16:45 +0100 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-05 21:18:16 +0100 |
| commit | 90254344d599bc977c0661f7c9681b7509a9076e (patch) | |
| tree | d5c521f154994a33e0d09db48971d1a967a6f543 /src/layouts/Layout.astro | |
| parent | 97147d56d93c7949fdccf22abe569b1b9d7a22ab (diff) | |
Moves to root folder
Diffstat (limited to 'src/layouts/Layout.astro')
| -rw-r--r-- | src/layouts/Layout.astro | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro new file mode 100644 index 0000000..b17de4d --- /dev/null +++ b/src/layouts/Layout.astro @@ -0,0 +1,32 @@ +--- +import Footer from '../components/Footer.astro'; +import translate from '../i18n/translate'; +import site from '../i18n/translations/site'; +import type Locale from '../types/Locale'; + +interface Props { + locale: Locale; + title: string; +} + +const { locale, title } = Astro.props; +const t = translate(locale); +--- + +<!DOCTYPE html> +<html lang="sco"> + <head> + <meta charset="UTF-8" /> + <meta name="description" content={ t(site, 'description') } /> + <meta name="viewport" content="width=device-width" /> + <link rel="icon" href="/favicon.ico" /> + <link rel="stylesheet" href="/public/normalize.css" /> + <link rel="stylesheet" href="/public/main.css" /> + <meta name="generator" content={Astro.generator} /> + <title>{ title } | { t(site, 'title') }</title> + </head> + <body> + <slot /> + <Footer /> + </body> +</html> |
