Fix home link
This commit is contained in:
@@ -3,9 +3,10 @@
|
|||||||
|
|
||||||
$: isHome = $page.path.endsWith("docs/1.0");
|
$: isHome = $page.path.endsWith("docs/1.0");
|
||||||
$: base = isHome ? "1.0/" : "";
|
$: base = isHome ? "1.0/" : "";
|
||||||
|
$: homeUrl = isHome ? "" : "../1.0";
|
||||||
|
|
||||||
$: pages = [
|
$: pages = [
|
||||||
{ url: "../1.0", text: "Home" },
|
{ url: homeUrl, 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" },
|
||||||
|
|||||||
@@ -3,9 +3,10 @@
|
|||||||
|
|
||||||
$: isHome = $page.path.endsWith("docs/latest");
|
$: isHome = $page.path.endsWith("docs/latest");
|
||||||
$: base = isHome ? "latest/" : "";
|
$: base = isHome ? "latest/" : "";
|
||||||
|
$: homeUrl = isHome ? "" : "../latest";
|
||||||
|
|
||||||
$: pages = [
|
$: pages = [
|
||||||
{ url: "../latest", text: "Home" },
|
{ url: homeUrl, 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