nav changes

This commit is contained in:
2025-07-17 10:38:58 -04:00
parent d4473bbe5a
commit 33dba5e8b5

View File

@ -39,7 +39,7 @@ const currentPath = Astro.url.pathname;
} }
const isExternal = item.href?.startsWith("http"); const isExternal = item.href?.startsWith("http");
const isActive = item.href === currentPath; const isActive = !isExternal && item.href === currentPath;
const nextItem = navItems[index + 1]; const nextItem = navItems[index + 1];
const shouldShowThinBar = nextItem && !nextItem.blockSeparator; const shouldShowThinBar = nextItem && !nextItem.blockSeparator;
@ -59,9 +59,10 @@ const currentPath = Astro.url.pathname;
</a> </a>
</li> </li>
{shouldShowThinBar && ( {shouldShowThinBar && (
<li class="text-neutral-400 dark:text-neutral-600 hidden sm:inline select-none" aria-hidden="true"> <li class="text-neutral-400 dark:text-neutral-600 select-none" aria-hidden="true">
| |
</li> </li>
)} )}
</> </>
); );