From 3098c31049e17dfdcdf451e843f6c4bdcf5b2fa1 Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> Date: Sat, 5 Aug 2023 21:16:45 +0100 Subject: Moves to root folder --- src/layouts/Layout.astro | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/layouts/Layout.astro (limited to 'src/layouts/Layout.astro') 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); +--- + + + + + + + + + + + + { title } | { t(site, 'title') } + + + +