Fix sidebar component
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { page } from "$app/stores";
|
import { page } from "$app/stores";
|
||||||
|
|
||||||
$: isHome = $page.path.endsWith("docs");
|
$: isHome = $page.path.endsWith("docs/1.0");
|
||||||
$: base = isHome ? "docs/" : "";
|
$: base = isHome ? "1.0/" : "";
|
||||||
|
|
||||||
$: pages = [
|
$: pages = [
|
||||||
{ url: "../docs", text: "Home" },
|
{ url: "../1.0", text: "Home" },
|
||||||
{ url: `${base}general-concepts`, text: "General concepts" },
|
{ url: `${base}general-concepts`, text: "General concepts" },
|
||||||
{ url: `${base}tailwind-ui`, text: "Use with Tailwind UI" },
|
{ url: `${base}tailwind-ui`, text: "Use with Tailwind UI" },
|
||||||
{ url: `${base}version-history`, text: "Version history" },
|
{ url: `${base}version-history`, text: "Version history" },
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { page } from "$app/stores";
|
import { page } from "$app/stores";
|
||||||
|
|
||||||
$: isHome = $page.path.endsWith("docs");
|
$: isHome = $page.path.endsWith("docs/latest");
|
||||||
$: base = isHome ? "docs/" : "";
|
$: base = isHome ? "latest/" : "";
|
||||||
|
|
||||||
$: pages = [
|
$: pages = [
|
||||||
{ url: "../docs", text: "Home" },
|
{ url: "../latest", text: "Home" },
|
||||||
{ url: `${base}general-concepts`, text: "General concepts" },
|
{ url: `${base}general-concepts`, text: "General concepts" },
|
||||||
{ url: `${base}tailwind-ui`, text: "Use with Tailwind UI" },
|
{ url: `${base}tailwind-ui`, text: "Use with Tailwind UI" },
|
||||||
{ url: `${base}version-history`, text: "Version history" },
|
{ url: `${base}version-history`, text: "Version history" },
|
||||||
|
|||||||
Reference in New Issue
Block a user