Update layout
- Move navbar into layout - Add layout to 404 page
This commit is contained in:
parent
11473a6b53
commit
6917b0c1bd
3 changed files with 25 additions and 20 deletions
|
|
@ -5,6 +5,15 @@ export interface Props {
|
|||
|
||||
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>
|
||||
|
|
@ -22,8 +31,17 @@ import "../assets/style/global.css";
|
|||
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<Navbar links={navbarLinks}/>
|
||||
</header>
|
||||
<main>
|
||||
<slot />
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<style>
|
||||
header > :global(*) {
|
||||
margin-left: auto;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue