refactor navbar code
This commit is contained in:
parent
bced6944f6
commit
bb346995ea
4 changed files with 66 additions and 41 deletions
|
|
@ -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 />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue