Skip to content

Commit cb6fc58

Browse files
committed
add footer here and ther
1 parent c439c5c commit cb6fc58

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/layouts/Base.astro

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
---
2+
import { getCollection } from 'astro:content';
3+
import FooterSection from '../components/FooterSection.astro';
4+
25
interface Props {
36
title?: string;
47
description?: string;
@@ -7,6 +10,9 @@ const {
710
title = "DevCongress | Africa's home for builders",
811
description = "DevCongress is a tech community where developers, designers, founders, and makers across Africa connect, grow, and build together.",
912
} = Astro.props;
13+
14+
const siteEntries = await getCollection('site');
15+
const site = siteEntries[0]!.data;
1016
---
1117

1218
<!doctype html>
@@ -35,6 +41,7 @@ const {
3541
</head>
3642
<body>
3743
<slot />
44+
<FooterSection socials={site.socials} />
3845
</body>
3946
</html>
4047

src/pages/index.astro

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import MeetupsSection from '../components/MeetupsSection.astro';
1111
import AdminsSection from '../components/AdminsSection.astro';
1212
import PartnersSection from '../components/PartnersSection.astro';
1313
import DonateSection from '../components/DonateSection.astro';
14-
import FooterSection from '../components/FooterSection.astro';
1514
1615
const siteEntries = await getCollection('site');
1716
const site = siteEntries[0]!.data;
@@ -42,5 +41,4 @@ const meetups = await getCollection('meetups');
4241
<PartnersSection partners={partners} />
4342
<DonateSection paystackUrl={site.paystack_url} donate={site.donate_section} />
4443
</main>
45-
<FooterSection socials={site.socials} />
4644
</Base>

0 commit comments

Comments
 (0)