Better workaround for navbar + hopefully burger fix

This commit is contained in:
Firq 2024-01-01 20:10:57 +01:00
parent b03eba2bd5
commit 4b3a8898f6
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
4 changed files with 11 additions and 90 deletions
src/layouts

View file

@ -1,7 +1,6 @@
---
import Navbar from '../components/navbar.astro'
import NavbarEntryDesktop from '../components/navbarEntryDesktop.astro'
import NavbarEntryMobile from '../components/navbarEntryMobile.astro'
import NavbarEntry from '../components/navbarEntry.astro'
import navdata from '../../static/data/_navdata.json'
import embed from '../assets/embed.png'
@ -78,12 +77,12 @@ const mapped_navdata = navdata.map((item) => ({
<Navbar>
{
mapped_navdata.map((item) => (
<NavbarEntryDesktop currentPage={currentpage} {...item} slot="desktop"/>
<NavbarEntry currentPage={currentpage} navtype="desktop" {...item} slot="desktop"/>
))
}
{
mapped_navdata.map((item) => (
<NavbarEntryMobile currentPage={currentpage} {...item} slot="mobile"/>
<NavbarEntry currentPage={currentpage} navtype="mobile" {...item} slot="mobile"/>
))
}
</Navbar>