diff --git a/src/lib/components/Navbar/Navbar.svelte b/src/lib/components/Navbar/Navbar.svelte index 40005a3..5b7cbe7 100644 --- a/src/lib/components/Navbar/Navbar.svelte +++ b/src/lib/components/Navbar/Navbar.svelte @@ -13,6 +13,8 @@ const updateCurrent = () => { const path = window.location.pathname; + console.log(path); + console.log(path.split('/')); if (path === '/') { current = 'home'; } else { @@ -22,6 +24,7 @@ }; onMount(() => { + console.log('test'); return navigating.subscribe(updateCurrent); }); @@ -32,7 +35,7 @@ {#if current === 'blog'} {:else} - + {/if}