Skip to content

Commit d4082a1

Browse files
committed
chore: switch footer
1 parent e42b040 commit d4082a1

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

src/layouts/Default.astro

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
import "../styles/global.css";
2+
import '../styles/global.css';
33
4-
import BaseFooter from "@components/layout/BaseFooter.astro";
5-
import BaseHead from "@components/layout/BaseHead.astro";
6-
import BaseNavigation from "@components/layout/BaseNavigation.astro";
4+
import BaseFooter from '@components/ui/layout/BaseFooter.astro';
5+
import BaseHead from '@components/layout/BaseHead.astro';
6+
import BaseNavigation from '@components/layout/BaseNavigation.astro';
77
88
export interface Props {
99
title: string;
@@ -13,6 +13,20 @@ export interface Props {
1313
socialImg?: URL;
1414
}
1515
16+
const footerLinks = [
17+
{ href: '/', title: 'Home' },
18+
{ href: '/blog', title: 'Articles' },
19+
// { href: "/about", title: "About" },
20+
{ href: 'https://x.com/eliancodes', title: 'Twitter' },
21+
{ href: 'https://github.com/eliancodes', title: 'GitHub' },
22+
{ href: '/blog.xml', title: 'RSS' },
23+
// { href: "/cat", title: "Cat" },
24+
// { href: "/photography", title: "Photography" },
25+
// { href: "/uses", title: "Uses" },
26+
// { href: "/ama", title: "AMA" },
27+
{ href: '/links', title: 'Links' },
28+
];
29+
1630
const { title, description, classList, pageTitle, socialImg } = Astro.props;
1731
---
1832

@@ -21,7 +35,7 @@ const { title, description, classList, pageTitle, socialImg } = Astro.props;
2135
<body class:list={[classList]}>
2236
<BaseNavigation pageTitle={pageTitle} />
2337
<slot />
24-
<BaseFooter />
38+
<BaseFooter links={footerLinks} />
2539
</body>
2640
</html>
2741

0 commit comments

Comments
 (0)