Playing around with options for base structure and navigation
This commit is contained in:
@@ -1,17 +1,20 @@
|
||||
---
|
||||
import './src/styles/global.css'
|
||||
import Navbar from '../components/Navbar.astro';
|
||||
|
||||
const pageTitle = Astro.props.title ? `${Astro.props.title} - Corwin Perren`: "Corwin Perren";
|
||||
---
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<link rel="icon" type="image/png" href="/favicon.png"/>
|
||||
<meta name="viewport" content="width=device-width"/>
|
||||
<meta name="generator" content={Astro.generator}/>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>{pageTitle}</title>
|
||||
</head>
|
||||
<body class="container mx-auto">
|
||||
<h1>{pageTitle}</h1>
|
||||
<slot/>
|
||||
<body>
|
||||
<Navbar />
|
||||
<main style="padding: 2rem;">
|
||||
<slot />
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user