aboutsummaryrefslogtreecommitdiff
path: root/src/routes/+layout.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/+layout.svelte')
-rw-r--r--src/routes/+layout.svelte5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index a168c65..b2803cc 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -1,5 +1,6 @@
<script>
import '../app.css';
+ import { page } from '$app/stores';
import Nav from '$lib/components/Nav.svelte';
let { children } = $props();
@@ -10,7 +11,9 @@
</svelte:head>
<div class="app">
- <Nav />
+ {#if $page.url.pathname !== '/login'}
+ <Nav />
+ {/if}
{@render children()}
</div>