new navigation flow

This commit is contained in:
2023-07-08 17:30:47 +02:00
parent c771706353
commit 856c7115ed
10 changed files with 200 additions and 56 deletions

View File

@@ -10,7 +10,7 @@
<nav>
{#each paths as { href, title, icon }}
<a {href} class:active={$page.url.pathname === href}>
<a {href} class:active={$page.url.pathname.startsWith(href)}>
<span class="icon">{icon}</span>
{title}
</a>