fix(theme): list branch-bundle children in page-teasers, section lists and nav #143
No reviewers
Labels
No labels
bug
enhancement
needs-triage
ready-for-agent
ready-for-human
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Cloonar/deckle!143
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "lab/20261004-1056"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #142
Problem
Every page the editor creates is a branch bundle (
<slug>/_index.md), but thepage-teasersshortcode, the_default/list.htmlsection listing and the header dropdown collected children with.RegularPages, which excludes branch bundles. On an editor-built site all three were always empty. The demo site only had plain-file children, so the tests never caught it.Changes
.Pages(a section's immediate children of either kind) instead of.RegularPages, matching what the news bundle's templates already do. Draft filtering is unchanged.hideChildren: truefront-matter flag. Listing bundle children would unfold every news article under the News menu entry on every page. A section with this flag is a plain nav item. The news page type stamps it on new news sections viadefaults; the news test fixture carries it too.posts/third/_index.md(a bundle post) andposts/draft-bundle/_index.md(a draft bundle) join the demo site..Pagesrule) and the element/template comments.Verification
go test ./internal/theme/passes against the pinned Hugo 0.163.3;go test ./...passes apart from the two packages that need the frontend bundle built.Existing sites need the three changed theme layouts copied in, and
hideChildren: trueadded to any news section already created.🤖 Generated with Claude Code
[autoland] verdict: pass
PASS. Signal relied on: Forgejo Actions
ci / build-and-testgreen on head87c7b6d(not re-run).Closes #142.page-teasers,_default/list.htmland the header nav read.Pagesinstead of.RegularPages. The newhideChildrenflag is stamped on news sections via the page type'sdefaults. Branch-bundle and draft-bundle fixtures are added, and tests pin the behaviour for teasers, the section list, the nav dropdown and the plain News nav entry.scaffold/site/AGENTS.mddoesn't need a change:hideChildrenis a theme front-matter flag, not a sidecar schema change, anddefaultswas already documented. The theme README documents it.git merge-treemerges cleanly.