Fix sidebar component

This commit is contained in:
Ryan Gossiaux
2023-06-10 18:23:15 -07:00
parent b7bfbb97ca
commit 840bb58b21
2 changed files with 6 additions and 6 deletions

View File

@@ -1,11 +1,11 @@
<script lang="ts">
import { page } from "$app/stores";
$: isHome = $page.path.endsWith("docs");
$: base = isHome ? "docs/" : "";
$: isHome = $page.path.endsWith("docs/latest");
$: base = isHome ? "latest/" : "";
$: pages = [
{ url: "../docs", text: "Home" },
{ url: "../latest", 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" },