feat: derive sidebar from content
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user