refactor navbar code

This commit is contained in:
Alexander Navarro 2023-08-20 11:45:40 -04:00
parent bced6944f6
commit bb346995ea
4 changed files with 66 additions and 41 deletions

View file

@ -7,13 +7,6 @@ const { title } = Astro.props;
import '../assets/style/global.css';
import Navbar from '../components/Navbar.astro';
const navbarLinks = [
{ href: '/', text: 'Home' },
{ href: '/blog', text: 'Blog' },
{ href: '/portafolio', text: 'Portafolio' },
{ href: '/curriculum', text: 'Curriculum' },
{ href: '/contact', text: 'Contact' },
];
---
<!DOCTYPE html>
@ -31,7 +24,7 @@ const navbarLinks = [
</head>
<body>
<header>
<Navbar client:load links={navbarLinks} />
<Navbar />
</header>
<main>
<slot />