From 1fdd45316e9cf72d342fd74378f63202210fb17e Mon Sep 17 00:00:00 2001 From: chark1es Date: Wed, 4 Dec 2024 23:34:02 -0800 Subject: [PATCH] add nav component to layout base --- src/layouts/Layout.astro | 39 +++++++++++++++++++++++---------------- src/pages/index.astro | 10 ++++------ 2 files changed, 27 insertions(+), 22 deletions(-) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 4a539df..287652a 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -1,22 +1,29 @@ +--- +import Navbar from "../components/Navbar.astro"; +--- + - - - - - - Astro Basics - - - - + + + + + + Astro Basics + + + + + + + diff --git a/src/pages/index.astro b/src/pages/index.astro index abd7de9..902d182 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,12 +1,10 @@ --- -import Welcome from '../components/Welcome.astro'; -import Navbar from '../components/Navbar.astro'; -import Layout from '../layouts/Layout.astro'; +import Welcome from "../components/Welcome.astro"; +import Navbar from "../components/Navbar.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 // Don't want to use any of this? Delete everything in this file, the `assets`, `components`, and `layouts` directories, and start fresh. --- - - - +