diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-18 21:28:17 +0100 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-18 21:38:16 +0100 |
| commit | a56344ea9aced15fc4d2932d48cb2efd7f452e94 (patch) | |
| tree | 12e58f6a0699291d4c5aea5c36d251db845f895b /src/components/Navbar/Logo.astro | |
| parent | 57b86c33a183e11652215f8588f728476f176fc5 (diff) | |
Pulls out nav module
Diffstat (limited to 'src/components/Navbar/Logo.astro')
| -rw-r--r-- | src/components/Navbar/Logo.astro | 14 |
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> |
