Better workaround for navbar + hopefully burger fix
This commit is contained in:
parent
b03eba2bd5
commit
4b3a8898f6
4 changed files with 11 additions and 90 deletions
src/layouts
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue