feat(nav): add context-aware expansion for nested navigation

Children are only visible when user is viewing a page within that
section. Uses Tera's starting_with test to detect ancestor relationship.
This commit is contained in:
Timothy DeHerrera
2026-02-01 09:16:47 -07:00
parent 7f765b32e1
commit d50a8c3fbe
2 changed files with 8 additions and 2 deletions

View File

@@ -98,11 +98,15 @@ body {
margin-left: 1rem;
padding-left: 0.5rem;
border-left: 1px solid var(--border);
display: flex;
display: none;
flex-direction: column;
gap: 0.25rem;
}
.sidebar .nav-children.expanded {
display: flex;
}
.sidebar .nav-children a {
font-size: 0.9rem;
}