From 1b35d006e5df302c38dac4f7bda153f9e6f0f74c Mon Sep 17 00:00:00 2001 From: Jo Franchetti Date: Fri, 29 Nov 2024 11:42:25 +0000 Subject: [PATCH 01/18] initial commit, adding header links to sidebar on mobile --- _components/Sidebar.tsx | 11 +++++++++++ _components/SidebarTopNav.tsx | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 _components/SidebarTopNav.tsx diff --git a/_components/Sidebar.tsx b/_components/Sidebar.tsx index 5488cc574..cf4c97a41 100644 --- a/_components/Sidebar.tsx +++ b/_components/Sidebar.tsx @@ -1,4 +1,5 @@ import Searcher from "lume/core/searcher.ts"; +import SidebarTopNav from "./SidebarTopNav.tsx"; import { Sidebar as Sidebar_, SidebarCategory as SidebarCategory_, @@ -20,6 +21,16 @@ export default function Sidebar( class="p-2 pt-0 pr-0 overflow-y-auto overflow-x-hidden" style={{ scrollbarGutter: "stable", scrollbarWidth: "thin" }} > + {props.url !== "/" && + ( + + )}