summaryrefslogtreecommitdiff
path: root/src/components/NavLinks.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/NavLinks.astro
parent57b86c33a183e11652215f8588f728476f176fc5 (diff)
Pulls out nav module
Diffstat (limited to 'src/components/NavLinks.astro')
-rw-r--r--src/components/NavLinks.astro25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/components/NavLinks.astro b/src/components/NavLinks.astro
deleted file mode 100644
index a34014e..0000000
--- a/src/components/NavLinks.astro
+++ /dev/null
@@ -1,25 +0,0 @@
----
-import getLocaleFromPath from '$lib/getLocaleFromPath';
-import translate from '$i18n/translate';
-import tNews from '$i18n/translations/pages/news';
-import tFurthsettins from '$i18n/translations/pages/furthsettins';
-import tHame from '$i18n/translations/pages/home';
-
-const locale = getLocaleFromPath(Astro.url.pathname);
-const t = translate(locale);
----
-
-<ul class="nav__nav-links">
- <li>
- <a class="btn" href={`/${locale}/news`}>{t(tNews, { key: 'title' })}</a>
- </li>
- <li>
- <a class="btn" href={`/${locale}/furthsettins`}>{t(tFurthsettins, { key: 'title' })}</a>
- </li>
- <li>
- <a class="btn" href={`/${locale}/#jyne`}>{t(tHame, { key: 'jyne' })}</a>
- </li>
- <li>
- <a class="btn" href={`/${locale}/#contact`}>{t(tHame, { key: 'contact' })}</a>
- </li>
-</ul>