From 64e1ff17af3d26040ac8acef682ef60db1bbf7a1 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Fri, 5 Apr 2024 02:01:30 -0700 Subject: [PATCH] feat: re-enable client rendering on all pages --- src/lib/components/Navbar/Navbar.svelte | 5 ++- src/routes/+layout.svelte | 5 +++ src/routes/about/+page.ts | 3 +- src/routes/blog/+page.svelte | 51 ++++++++++++++++------ src/routes/blog/+page.ts | 1 - src/routes/blog/[year]/[slug]/+page.svelte | 28 ++++++++++++ src/routes/blog/[year]/[slug]/+page.ts | 27 ++++++++++++ src/routes/portfolio/+page.ts | 1 - 8 files changed, 103 insertions(+), 18 deletions(-) create mode 100644 src/routes/blog/[year]/[slug]/+page.svelte create mode 100644 src/routes/blog/[year]/[slug]/+page.ts 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}