feat: derive sidebar from content

This commit is contained in:
2026-06-21 18:01:31 +00:00
parent b9b78db633
commit f8af9035e8
6 changed files with 36 additions and 61 deletions
+3 -3
View File
@@ -6,11 +6,11 @@ weight = 13
The files that matter are not hard to find.
- `hugo.toml` sets the theme, site title, footer text, and sidebar menu.
- `content/` holds the homepage and this short guide.
- `hugo.toml` sets the theme, site title, and footer text.
- `content/` holds the homepage and this short guide. Its section tree also drives the sidebar.
- `themes/starless/layouts/_default/baseof.html` builds the page shell and the shared styling.
- `themes/starless/layouts/partials/sidebar.html` renders the left rail.
- `themes/starless/layouts/partials/menu-tree.html` renders the nested menu links.
- `themes/starless/layouts/partials/menu-tree.html` renders the nested section and page links.
- `themes/starless/layouts/_default/home.html`, `list.html`, and `single.html` handle the main content area.
If you are trying to understand the theme, read those files in that order. There is not much else hiding off to the side.