add nav component to layout base
This commit is contained in:
parent
d9e0b9156a
commit
1fdd45316e
2 changed files with 27 additions and 22 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
---
|
||||||
|
import Navbar from "../components/Navbar.astro";
|
||||||
|
---
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
@ -7,6 +11,9 @@
|
||||||
<meta name="generator" content={Astro.generator} />
|
<meta name="generator" content={Astro.generator} />
|
||||||
<title>Astro Basics</title>
|
<title>Astro Basics</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
<Navbar client:load />
|
||||||
|
|
||||||
<body class="bg-ieee_blue">
|
<body class="bg-ieee_blue">
|
||||||
<slot />
|
<slot />
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
---
|
---
|
||||||
import Welcome from '../components/Welcome.astro';
|
import Welcome from "../components/Welcome.astro";
|
||||||
import Navbar from '../components/Navbar.astro';
|
import Navbar from "../components/Navbar.astro";
|
||||||
import Layout from '../layouts/Layout.astro';
|
import Layout from "../layouts/Layout.astro";
|
||||||
|
|
||||||
// Welcome to Astro! Wondering what to do next? Check out the Astro documentation at https://docs.astro.build
|
// Welcome to Astro! Wondering what to do next? Check out the Astro documentation at https://docs.astro.build
|
||||||
// Don't want to use any of this? Delete everything in this file, the `assets`, `components`, and `layouts` directories, and start fresh.
|
// Don't want to use any of this? Delete everything in this file, the `assets`, `components`, and `layouts` directories, and start fresh.
|
||||||
---
|
---
|
||||||
|
|
||||||
<Layout>
|
<Layout />
|
||||||
<Navbar />
|
|
||||||
</Layout>
|
|
||||||
|
|
Loading…
Reference in a new issue