summaryrefslogtreecommitdiff
path: root/src/components/Navbar/Logo.astro
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-18 21:28:17 +0100
committerJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-18 21:38:16 +0100
commita56344ea9aced15fc4d2932d48cb2efd7f452e94 (patch)
tree12e58f6a0699291d4c5aea5c36d251db845f895b /src/components/Navbar/Logo.astro
parent57b86c33a183e11652215f8588f728476f176fc5 (diff)
Pulls out nav module
Diffstat (limited to 'src/components/Navbar/Logo.astro')
-rw-r--r--src/components/Navbar/Logo.astro14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/components/Navbar/Logo.astro b/src/components/Navbar/Logo.astro
new file mode 100644
index 0000000..58bf01d
--- /dev/null
+++ b/src/components/Navbar/Logo.astro
@@ -0,0 +1,14 @@
+---
+import translate from '$i18n/translate';
+import getLocaleFromPath from '$lib/getLocaleFromPath';
+import tSite from '$i18n/translations/site';
+
+const locale = getLocaleFromPath(Astro.url.pathname);
+const t = translate(locale);
+---
+
+<p class="title--small nav__logo">
+ <a href="/">
+ {t(tSite, { key: 'scots-leid-associe' })}
+ </a>
+</p>