This commit is contained in:
2026-07-25 01:46:59 +02:00
parent 81698cc039
commit 172a0bac61
66 changed files with 3245 additions and 416 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
<script lang="ts">
import { page } from '$app/state';
import { isSectionActive } from '$lib/navigation.svelte';
import type { SessionUser } from '$lib/types';
import Home from '@lucide/svelte/icons/house';
import Search from '@lucide/svelte/icons/search';
@@ -42,7 +43,7 @@
];
function isActive(href: string) {
return href === '/' ? page.url.pathname === '/' : page.url.pathname.startsWith(href);
return isSectionActive(href, page.url.pathname, page.data.section);
}
$effect(() => {