From 0b392f4c242f7b3f565fdcafa741abfdfa4fc93f Mon Sep 17 00:00:00 2001 From: Zachary Ross Date: Tue, 16 Apr 2024 18:35:20 -0400 Subject: [PATCH] Fix nav issue --- src/routes/header.svelte | 3 ++- src/routes/zine/articles/[slug]/+page.svelte | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/routes/header.svelte b/src/routes/header.svelte index 384caf6..8c4eeff 100644 --- a/src/routes/header.svelte +++ b/src/routes/header.svelte @@ -7,7 +7,8 @@ if ($navMode == "yellow") { unselectedText = 'darkText' - if (route == '/zine') + + if (route == '/zine' && $page.url.pathname.includes('/zine')) { route = $page.url.pathname } diff --git a/src/routes/zine/articles/[slug]/+page.svelte b/src/routes/zine/articles/[slug]/+page.svelte index 30c6954..16d4617 100644 --- a/src/routes/zine/articles/[slug]/+page.svelte +++ b/src/routes/zine/articles/[slug]/+page.svelte @@ -2,7 +2,7 @@ export let data; import { page } from '$app/stores'; import navMode from '$lib/navMode' - $navMode = "dark" + $navMode = "yellow"