aboutsummaryrefslogtreecommitdiff
path: root/src/layouts/Page.astro
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2024-01-22 15:15:18 +0000
committerAndrew Lee <alee14498@protonmail.com>2024-01-22 15:15:18 +0000
commit4b953d0c3be1d3c162f49612f21f5907ce64ce07 (patch)
tree9ded6195e88763c8cfe799020616113c39a48652 /src/layouts/Page.astro
parent2604cab500fa359cbeb106873f6e0ea19b798e2b (diff)
downloadpersonal-website-4b953d0c3be1d3c162f49612f21f5907ce64ce07.tar.gz
personal-website-4b953d0c3be1d3c162f49612f21f5907ce64ce07.tar.bz2
personal-website-4b953d0c3be1d3c162f49612f21f5907ce64ce07.zip
Update navigation links and description is no longer hardcoded
Diffstat (limited to 'src/layouts/Page.astro')
-rw-r--r--src/layouts/Page.astro7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/layouts/Page.astro b/src/layouts/Page.astro
index d2624c5..b0f202a 100644
--- a/src/layouts/Page.astro
+++ b/src/layouts/Page.astro
@@ -1,11 +1,12 @@
---
import Layout from './Default.astro';
+const { title, description } = Astro.props;
---
-<Layout>
+<Layout title=`${title} | Andrew Lee` description={description}>
<header>
- <h1>Test</h1>
- <h2>Description</h2>
+ <h1>{title}</h1>
+ <h2>{description}</h2>
</header>
</Layout>