diff --git a/docs-site/src/components/Header.astro b/docs-site/src/components/Header.astro index 18d09c8..7db945b 100644 --- a/docs-site/src/components/Header.astro +++ b/docs-site/src/components/Header.astro @@ -64,10 +64,7 @@ function navIcon(href: string) { -
+ + { + !hasSidebar && nav.length > 0 && ( +
+ + +
+ {nav.map((item) => { + const href = getI18nText(item.href, route) + const label = getI18nText(item.label, route) + const icon = navIcon(href) + + return ( + + {icon && } + {label} + + ) + })} +
+
+ ) + }