news: enable categories taxonomy and term pages in the news bundle #129
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Cloonar/deckle#129
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?
Split out of #77 (News v2 categories). Second slice of the stack: Hugo-side taxonomy enablement and term pages for the news feature bundle. Independent of the multiselect field type — term pages render from front matter, which tests can author directly.
Decision record from triage on #77: full Hugo-taxonomy scope, categories only, vocabulary curated in sidecar options, work split into stacked issues.
Agent brief follows in the comments.
Agent Brief
Category: enhancement
Summary:
harness add newsenables acategoriesHugo taxonomy on the site, and the news bundle ships taxonomy/term list templates.Current behavior:
The scaffolded site disables Hugo's
taxonomyandtermpage kinds viadisableKindsinhugo.toml, and no taxonomy or term templates exist anywhere in the theme or bundles. The news feature bundle (harness add news) vendors news page types, layouts, and RSS onto a site, and already mutateshugo.tomlthrough the add command's feature-step mechanism (it stampsbuildFuture = trueso future-dated items render). News items carry no category metadata.Desired behavior:
Adding the news feature configures the site for a single
categoriestaxonomy and renders working term pages:hugo.toml: declares thecategoriestaxonomy and removestaxonomyandtermfromdisableKinds. It must be idempotent (safe to run on a site that already has it), in the style of the existing buildFuture step. Sites that never add the news feature keep taxonomy kinds disabled.categorieslist (hand-authored for now — the editor field is a separate stacked issue), the built site produces the/categories/overview and/categories/<term>/pages with the right items. Draft items are excluded, matching the news list's draft handling.Key interfaces:
hugo.tomlconfig shape:disableKindsand thetaxonomiestableAcceptance criteria:
harness add newson a fresh site yields ahugo.tomlwith thecategoriestaxonomy declared andtaxonomy/termno longer indisableKinds; running add twice does not duplicate or corrupt the configcategoriesfront matter, the built site contains a/categories/overview and per-term pages listing exactly the matching items, date-descending, drafts excludedOut of scope: