diff --git a/site/src/routes/+layout.svelte b/site/src/routes/+layout.svelte index 14237ce18..76becbda9 100644 --- a/site/src/routes/+layout.svelte +++ b/site/src/routes/+layout.svelte @@ -4,24 +4,36 @@ import favicon from "$lib/assets/favicon.svg"; import type { NavLink } from "./docs"; + import { onNavigate } from "$app/navigation"; const { data, children } = $props(); + let menuOpen = $state(false); + onNavigate(() => { + menuOpen = false; + console.log(menuOpen); + }); - +
+ + +
{@render children?.()}
@@ -50,28 +62,32 @@ {/snippet} diff --git a/site/src/routes/+layout.ts b/site/src/routes/+layout.ts index a84bab319..5f6f37134 100644 --- a/site/src/routes/+layout.ts +++ b/site/src/routes/+layout.ts @@ -9,6 +9,9 @@ export async function load({ url }) { ? url.pathname.slice(0, -1) : url.pathname; return { - docs: path != config.docs.base ? null : await new Docs().init(), + docs: + path != config.docs.base && !path.startsWith(`${config.docs.base}/`) + ? null + : await new Docs().init(), }; } diff --git a/site/src/routes/blog/+page.svelte b/site/src/routes/blog/+page.svelte new file mode 100644 index 000000000..fcc0bb9da --- /dev/null +++ b/site/src/routes/blog/+page.svelte @@ -0,0 +1 @@ +

Blog

diff --git a/site/src/routes/docs/+layout.svelte b/site/src/routes/docs/+layout.svelte index 0d1f289c0..0428bdb69 100644 --- a/site/src/routes/docs/+layout.svelte +++ b/site/src/routes/docs/+layout.svelte @@ -42,12 +42,6 @@ } nav { display: none; - position: fixed; - left: 0; - top: 0; - width: 100vw; - height: 100vh; - background: #fff; } summary { diff --git a/site/src/routes/index.css b/site/src/routes/index.css index a13bd970d..ed009276b 100644 --- a/site/src/routes/index.css +++ b/site/src/routes/index.css @@ -17,5 +17,5 @@ body { :root { --pagePadding: 15px; - --globalNavHeight: 60px; + --globalBarHeight: 60px; }