File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,14 @@ import Footer from "~/components/layout/Footer.astro";
8
8
export interface Props {
9
9
title: string ;
10
10
transition? : boolean ;
11
+ displayFooter? : boolean ;
11
12
}
13
+
14
+ const displayFooter = Astro .props .displayFooter ?? true ;
12
15
---
13
16
14
17
<Layout title ={ Astro .props .title } transition ={ Astro .props .transition } >
15
18
<Header />
16
19
<slot />
17
- <Footer />
20
+ { displayFooter && <Footer />}
18
21
</Layout >
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export interface Props {
29
29
}
30
30
---
31
31
32
- <Layout title =" Wiki" transition ={ true } >
32
+ <Layout title =" Wiki" transition ={ true } displayFooter = { false } >
33
33
<div class =" columns" >
34
34
<div id =" article-browser" class =" sidebar" >
35
35
<button class =" open" ><Icon name =" newspaper" group =" solid" /></button >
You can’t perform that action at this time.
0 commit comments