mirror of https://github.com/pcleavelin/a_ci.git
navigation stuff?
parent
304bc4a2b5
commit
d764b8513a
|
|
@ -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>
|
||||
|
|
@ -1,18 +1,9 @@
|
|||
---
|
||||
import '../styles/global.css';
|
||||
import Navigation from '../components/Navigation.astro';
|
||||
import BaseLayout from '../layouts/BaseLayout.astro'
|
||||
const pageTitle = "Home Page"
|
||||
---
|
||||
|
||||
<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>Astro</title>
|
||||
</head>
|
||||
<body>
|
||||
<Navigation />
|
||||
<h1>Astro</h1>
|
||||
</body>
|
||||
</html>
|
||||
<BaseLayout pageTitle={pageTitle}>
|
||||
<h2>This is the home page</h2>
|
||||
</BaseLayout>
|
||||
|
|
|
|||
Loading…
Reference in New Issue