navigation stuff?

db-work
Patrick Cleavelin 2025-11-04 15:26:48 -06:00
parent 304bc4a2b5
commit d764b8513a
2 changed files with 26 additions and 14 deletions

View File

@ -0,0 +1,21 @@
---
import '../styles/global.css'
import Navigation from '../components/Navigation.astro'
const { pageTitle } = Astro.props
---
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width" />
<meta name="generator" content={Astro.generator} >
<title>{pageTitle}</title>
</head>
<body>
<Navigation />
<h1>Astro - {pageTitle}</h1>
<slot />
</body>
</html>

View File

@ -1,18 +1,9 @@
--- ---
import '../styles/global.css'; import '../styles/global.css';
import Navigation from '../components/Navigation.astro'; import BaseLayout from '../layouts/BaseLayout.astro'
const pageTitle = "Home Page"
--- ---
<html lang="en"> <BaseLayout pageTitle={pageTitle}>
<head> <h2>This is the home page</h2>
<meta charset="utf-8" /> </BaseLayout>
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width" />
<meta name="generator" content={Astro.generator} >
<title>Astro</title>
</head>
<body>
<Navigation />
<h1>Astro</h1>
</body>
</html>