Fix sidebar component
This commit is contained in:
@@ -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" },
|
||||
|
||||
Reference in New Issue
Block a user