Skip to content

Commit

Permalink
Fix nav issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xzippyzachx committed Apr 16, 2024
1 parent cee3764 commit 0b392f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/routes/header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
if ($navMode == "yellow")
{
unselectedText = 'darkText'
if (route == '/zine')
if (route == '/zine' && $page.url.pathname.includes('/zine'))
{
route = $page.url.pathname
}
Expand Down
2 changes: 1 addition & 1 deletion src/routes/zine/articles/[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
export let data;
import { page } from '$app/stores';
import navMode from '$lib/navMode'
$navMode = "dark"
$navMode = "yellow"
</script>

<div class="flex md:flex-row flex-col dark">
Expand Down

0 comments on commit 0b392f4

Please sign in to comment.