Notable TA section created
This commit is contained in:
parent
d5052a8a93
commit
acc66bafeb
2 changed files with 17 additions and 2 deletions
src/layouts
|
@ -1,13 +1,20 @@
|
|||
---
|
||||
export interface Props {
|
||||
title: string;
|
||||
abovetext?: string;
|
||||
}
|
||||
|
||||
const { title } = Astro.props;
|
||||
const { abovetext, title } = Astro.props;
|
||||
let h2text;
|
||||
if (abovetext === undefined) {
|
||||
h2text = "The full list of my completed TAs can be found on my Youtube channel."
|
||||
} else {
|
||||
h2text = ""
|
||||
}
|
||||
---
|
||||
<div>
|
||||
<h1>{title}</h1>
|
||||
<h2>The full list of my completed TAs can be found on my Youtube channel. This is only a small selection of the most notable TAs</h2>
|
||||
<h2>{h2text}</h2>
|
||||
<div class="container ta-container">
|
||||
<slot />
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue