Skip to content

Commit

Permalink
fix: nav links
Browse files Browse the repository at this point in the history
  • Loading branch information
williamsjokvist committed Dec 29, 2023
1 parent 69e3f70 commit ea10e39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/NavBar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ import Icon from "astro-icon";
const NavItems = [{
href: '/guide',
name: 'Guide',
icon: Astro.url.pathname === '/guide' ? "akar-icons:info-fill" : "akar-icons:info"
icon: Astro.url.pathname.includes('guide') ? "akar-icons:info-fill" : "akar-icons:info"
}, {
href: '/faq',
name: 'FAQ',
icon: Astro.url.pathname === '/faq' ? "mdi:chat-bubble" : "mdi:chat-bubble-outline"
icon: Astro.url.pathname.includes('faq') ? "mdi:chat-bubble" : "mdi:chat-bubble-outline"
},
{
href: '/changelog',
name: 'Changelog',
icon: Astro.url.pathname === '/changelog' ? "mdi:scroll" : "mdi:scroll-outline"
icon: Astro.url.pathname.includes('changelog') ? "mdi:scroll" : "mdi:scroll-outline"
}]
---

Expand Down

0 comments on commit ea10e39

Please sign in to comment.