From 7751571aca0a3093f33717c7deb1f2f6ce2099b1 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Fri, 12 Jan 2024 17:14:52 +0000 Subject: Simplifies homepage --- src/pages/[locale]/index.astro | 113 +++++++++++++++-------------------------- 1 file changed, 41 insertions(+), 72 deletions(-) (limited to 'src/pages') diff --git a/src/pages/[locale]/index.astro b/src/pages/[locale]/index.astro index b08f412..d895128 100644 --- a/src/pages/[locale]/index.astro +++ b/src/pages/[locale]/index.astro @@ -4,11 +4,6 @@ import localeStaticPaths from '$lib/localeStaticPaths'; import translate from '$i18n/translate'; import tPage from '$i18n/translations/pages/home'; import type Locale from '$types/Locale'; -import { getMostRecentNewsItem } from '$lib/newsUtils'; -import contactDetails from '$data/contactDetails'; -import NewsIndex from '$components/NewsIndex/NewsIndex.astro'; -import Button from '$components/Button.astro'; -import CommitteeList from '$components/CommitteeList/CommitteeList.astro'; export async function getStaticPaths() { return localeStaticPaths; @@ -16,76 +11,50 @@ export async function getStaticPaths() { const locale = Astro.params.locale as Locale; const t = translate(locale); -const mostRecentNewsItem = await getMostRecentNewsItem(locale); ---
-

-

-

-

-

-
-

- - { - mostRecentNewsItem && ( - - ) - } -

- -
-

-

-

-

-

-

{t(tPage, { key: 'mair-commattee-details-soon' })}

- -

- -
-

-

- -

- -
-

- -

-

-

-

- -

-

-

-

- -
-

- - {contactDetails.generalEnquiries.emailAddress} - -
- Scots Language Society
- c/o 61 Cliffburn Road
- Arbroath
- Angus
- DD11 5BA
- United Kingdom
-
+

{t(tPage, { key: 'intro' })}

+ +

-- cgit v1.2.3