Move layout around a bit more

This commit is contained in:
Jon Staab
2024-10-18 15:58:44 -07:00
parent 5174bd0db8
commit 4308e29dec
12 changed files with 175 additions and 131 deletions
+2 -1
View File
@@ -4,10 +4,11 @@
export let title = ""
export let href = ""
export let noActive = false
$: itemSegment = href.split("/")[1]
$: currentSegment = $page.route?.id?.split("/")[1]
$: active = itemSegment === currentSegment
$: active = itemSegment === currentSegment && !noActive
</script>
{#if href}