Skip to content

Commit

Permalink
fix: nav active
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronczichon committed Mar 10, 2024
1 parent 34b266a commit 2c74fe7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web-canada/src/components/Nav.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ const currentPath = pathname.slice(1); // remove the first "/"
</a>
<!-- <a href="#contact">Canada</a> -->
<a href="/blog/" class={currentPath.indexOf('blog') > -1 ? "active" : ""}>Blog</a>
<a href="/pengiun">Find Pengiuns</a>
<a href="/pengiun" class={currentPath.indexOf('pengiun') > -1 ? "active" : ""}>Find Pengiuns</a>
<!-- <a href="map.html">Map</a> -->
<!-- <a href="images.html">Images</a> -->
<a href="/about/">Über uns</a>
<a href="/about/" class={currentPath.indexOf('about') > -1 ? "active" : ""}>Über uns</a>
<a href="https://aaronczichon.de/imprint/" target="_blank">Impressum</a>
<a href="javascript:void(0);" class="icon" onclick="toggleNav()">
<MenuIcon />
Expand Down

0 comments on commit 2c74fe7

Please sign in to comment.