diff options
| author | Joe Carstairs <me@joeac.net> | 2024-10-13 17:33:23 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2024-10-13 17:37:01 +0100 |
| commit | e56bbfb51f04c351108c89078c627937ebca7bef (patch) | |
| tree | a20a08ef587edff15d59f126aaa87ebb4e0753ad /src/components/Navbar | |
| parent | ea64fd05f7f5ac4d053e6dc8dc544585981f19e9 (diff) | |
Refactors About and Contact pages
Diffstat (limited to 'src/components/Navbar')
| -rw-r--r-- | src/components/Navbar/NavLinks.astro | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/components/Navbar/NavLinks.astro b/src/components/Navbar/NavLinks.astro index 36c7f6f..2343a42 100644 --- a/src/components/Navbar/NavLinks.astro +++ b/src/components/Navbar/NavLinks.astro @@ -1,10 +1,11 @@ --- import { getLocaleFromPathOrDefault } from '$lib/getLocaleFromPath'; import translate from '$i18n/translate'; +import tContact from '$i18n/translations/pages/contact'; import tNews from '$i18n/translations/pages/news'; import tFurthsettins from '$i18n/translations/pages/furthsettins'; -import tHame from '$i18n/translations/pages/home'; import tJyne from '$i18n/translations/pages/jyne'; +import tSubmit from '$i18n/translations/pages/submit'; const locale = getLocaleFromPathOrDefault(Astro.url.pathname); const t = translate(locale); @@ -15,7 +16,7 @@ const t = translate(locale); <a class="btn" href={`/${locale}/news`}>{t(tNews, { key: 'title' })}</a> </li> <li> - <a class="btn" href={`/${locale}/#about`}>{t(tHame, { key: 'about-us' })}</a> + <a class="btn" href={`/${locale}/submit`}>{t(tSubmit, { key: 'title' })}</a> </li> <li> <a class="btn" href={`/${locale}/furthsettins`}>{t(tFurthsettins, { key: 'title' })}</a> @@ -24,6 +25,6 @@ const t = translate(locale); <a class="btn" href={`/${locale}/jyne`}>{t(tJyne, { key: 'title' })}</a> </li> <li> - <a class="btn" href={`/${locale}/#contact`}>{t(tHame, { key: 'contact' })}</a> + <a class="btn" href={`/${locale}/contact`}>{t(tContact, { key: 'title' })}</a> </li> </ul> |
