Skip to content

Commit 79b943f

Browse files
committed
fix: don't display default footer on article pages
1 parent b5e1e66 commit 79b943f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/layouts/Main.astro

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@ import Footer from "~/components/layout/Footer.astro";
88
export interface Props {
99
title: string;
1010
transition?: boolean;
11+
displayFooter?: boolean;
1112
}
13+
14+
const displayFooter = Astro.props.displayFooter ?? true;
1215
---
1316

1417
<Layout title={Astro.props.title} transition={Astro.props.transition}>
1518
<Header />
1619
<slot />
17-
<Footer />
20+
{displayFooter && <Footer />}
1821
</Layout>

src/layouts/WikiArticle.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export interface Props {
2929
}
3030
---
3131

32-
<Layout title="Wiki" transition={true}>
32+
<Layout title="Wiki" transition={true} displayFooter={false}>
3333
<div class="columns">
3434
<div id="article-browser" class="sidebar">
3535
<button class="open"><Icon name="newspaper" group="solid" /></button>

0 commit comments

Comments
 (0)