nav changes
This commit is contained in:
@ -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>
|
||||||
|
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user