diff --git a/src/routes/docs/1.0/_Sidebar.svelte b/src/routes/docs/1.0/_Sidebar.svelte index f9e9787..032ccd8 100644 --- a/src/routes/docs/1.0/_Sidebar.svelte +++ b/src/routes/docs/1.0/_Sidebar.svelte @@ -3,9 +3,10 @@ $: isHome = $page.path.endsWith("docs/1.0"); $: base = isHome ? "1.0/" : ""; + $: homeUrl = isHome ? "" : "../1.0"; $: pages = [ - { url: "../1.0", text: "Home" }, + { url: homeUrl, text: "Home" }, { url: `${base}general-concepts`, text: "General concepts" }, { url: `${base}tailwind-ui`, text: "Use with Tailwind UI" }, { url: `${base}version-history`, text: "Version history" }, diff --git a/src/routes/docs/latest/_Sidebar.svelte b/src/routes/docs/latest/_Sidebar.svelte index 831c1bb..c478e2b 100644 --- a/src/routes/docs/latest/_Sidebar.svelte +++ b/src/routes/docs/latest/_Sidebar.svelte @@ -3,9 +3,10 @@ $: isHome = $page.path.endsWith("docs/latest"); $: base = isHome ? "latest/" : ""; + $: homeUrl = isHome ? "" : "../latest"; $: pages = [ - { url: "../latest", text: "Home" }, + { url: homeUrl, text: "Home" }, { url: `${base}general-concepts`, text: "General concepts" }, { url: `${base}tailwind-ui`, text: "Use with Tailwind UI" }, { url: `${base}version-history`, text: "Version history" },