diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2024-01-22 15:15:18 +0000 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2024-01-22 15:15:18 +0000 |
| commit | 4b953d0c3be1d3c162f49612f21f5907ce64ce07 (patch) | |
| tree | 9ded6195e88763c8cfe799020616113c39a48652 /src/layouts/Default.astro | |
| parent | 2604cab500fa359cbeb106873f6e0ea19b798e2b (diff) | |
| download | personal-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/Default.astro')
| -rw-r--r-- | src/layouts/Default.astro | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/layouts/Default.astro b/src/layouts/Default.astro index e28d85c..08ed4fb 100644 --- a/src/layouts/Default.astro +++ b/src/layouts/Default.astro @@ -1,9 +1,10 @@ --- interface Props { title: string; + description: string; } -const { title } = Astro.props; +const { title, description } = Astro.props; import { ViewTransitions } from 'astro:transitions'; import Navbar from '../components/Navbar.astro'; --- @@ -12,7 +13,7 @@ import Navbar from '../components/Navbar.astro'; <html lang="en"> <head> <meta charset="UTF-8" /> - <meta name="description" content="Andrew Lee Website" /> + <meta name="description" content={description} /> <meta name="viewport" content="width=device-width" /> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
