From a0b4f4991559dc7d2bc174c7418a3924873f9ff9 Mon Sep 17 00:00:00 2001 From: luxick Date: Sun, 23 Aug 2026 13:38:45 +0200 Subject: [PATCH] Merge TOC into page content --- assets/layout.html | 2 +- assets/overlay.js | 6 ++---- assets/page/main.html | 2 +- assets/page/sidebar-fab.js | 5 ----- assets/page/toc.js | 6 ++---- assets/style.css | 40 +++++++++++++------------------------- 6 files changed, 20 insertions(+), 41 deletions(-) diff --git a/assets/layout.html b/assets/layout.html index b6ae07f..0ddc87e 100644 --- a/assets/layout.html +++ b/assets/layout.html @@ -48,7 +48,7 @@ - {{if not .EditMode}}{{end}} + {{if not .EditMode}}{{block "aside" .}}{{end}}{{end}} {{block "extras" .}}{{end}} diff --git a/assets/overlay.js b/assets/overlay.js index e9de619..137ca14 100644 --- a/assets/overlay.js +++ b/assets/overlay.js @@ -1,8 +1,6 @@ // Full-viewport Overlay component (mobile). Distinct from the .modal dialog: -// this hosts a whole rail (the folder tree or the right-rail widgets/TOC) at -// full screen with its own scroll and a top-right close control. It reuses the -// low-level focus/Escape/bfcache patterns from modal.js rather than that -// component's panel chrome. +// this hosts a whole sidebar at full screen with its own scroll and a top-right close control. +// It reuses the low-level focus/Escape/bfcache patterns from modal.js rather than that component's panel chrome. // // openOverlay(node) MOVES `node` (an existing rail