Page teasers, section lists and nav dropdown never list editor-created pages #142
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#142
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Problem
The Page teasers element (
page-teasers), the section list page (_default/list.html) and the header dropdown collect a section's children with Hugo's.RegularPages. That collection excludes branch bundles, and every page the editor creates is a branch bundle (<slug>/_index.md). On an editor-built site all three listings are therefore always empty, with no warning.Reproduced with the pinned Hugo 0.163.3: a section whose children are
_index.mdbundles renders an empty<ul class="ce-teasers__list">; the same section with plain.mdchildren renders teasers. The demo site intestdata/library-siteonly has plain-file children, so the tests never caught it.Fix
Read children from
.Pages(immediate children of either kind), as the news bundle's templates already do. Because that would also unfold every news article under the News menu entry, add ahideChildren: truefront-matter flag that suppresses a section's nav dropdown, stamped on news sections by the news page type'sdefaults. Add branch-bundle fixtures to the demo site and pin the behaviour in the theme tests.