- {!isHome &&
- (
-
-
-
-
- )}
+ {!isHome && (
+
+
+
+
+ )}
+ {isDocs && }
@@ -26,12 +28,7 @@ export default function Header(props: { title: string; active: string }) {
function Logo() {
return (
-
+
);
}
diff --git a/www/islands/SearchButton.tsx b/www/islands/SearchButton.tsx
index 71a3cee9..a4c7084b 100644
--- a/www/islands/SearchButton.tsx
+++ b/www/islands/SearchButton.tsx
@@ -2,7 +2,7 @@ import { Head } from "$fresh/runtime.ts";
import { useEffect, useRef } from "preact/hooks";
import docsearch from "https://esm.sh/@docsearch/js@3";
-export default function SearchButton() {
+export default function SearchButton(props: { class?: string }) {
const ref = useRef
(null);
useEffect(() => {
if (ref.current) {
@@ -22,7 +22,7 @@ export default function SearchButton() {
href="/docsearch.css"
/>
-
+
>
);
}
diff --git a/www/routes/docs/[...slug].tsx b/www/routes/docs/[...slug].tsx
index 020163e5..10ebf029 100644
--- a/www/routes/docs/[...slug].tsx
+++ b/www/routes/docs/[...slug].tsx
@@ -168,7 +168,7 @@ function Main(props: { path: string; page: Page }) {
return (
-
+
-
+
@@ -235,7 +233,7 @@ function MobileSidebar(props: { path: string; page: Page }) {
function DesktopSidebar(props: { path: string; page: Page }) {
return (
-