From d0d842d83b1232de88d9f9a558d25e587cec7a7a Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Mon, 22 Jan 2024 13:47:27 +0100 Subject: [PATCH] fix: layout by url in docs --- src/routes/docs/quick-starts/+layout.svelte | 2 +- src/routes/docs/tutorials/+layout.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/docs/quick-starts/+layout.svelte b/src/routes/docs/quick-starts/+layout.svelte index 67b37fbb9a..759302d84d 100644 --- a/src/routes/docs/quick-starts/+layout.svelte +++ b/src/routes/docs/quick-starts/+layout.svelte @@ -4,7 +4,7 @@ import Sidebar from '../Sidebar.svelte'; - + diff --git a/src/routes/docs/tutorials/+layout.svelte b/src/routes/docs/tutorials/+layout.svelte index 788c734e71..b2abca6d84 100644 --- a/src/routes/docs/tutorials/+layout.svelte +++ b/src/routes/docs/tutorials/+layout.svelte @@ -3,7 +3,7 @@ import Docs, { type DocsLayoutVariant } from '$lib/layouts/Docs.svelte'; import Sidebar from '../Sidebar.svelte'; - $: variant = $page.url.pathname.endsWith('/tutorials') + $: variant = $page.route.id === '/docs/tutorials' ? 'default' : ('two-side-navs' as DocsLayoutVariant);