Skip to content

Link a subsection's own children in the nav strip - #94

Merged
ssavutu merged 1 commit into
mainfrom
feat/nested-subsection-strip
Aug 13, 2026
Merged

Link a subsection's own children in the nav strip#94
ssavutu merged 1 commit into
mainfrom
feat/nested-subsection-strip

Conversation

@ssavutu

@ssavutu ssavutu commented Aug 13, 2026

Copy link
Copy Markdown
Member

The CMS taxonomy is three levels now: A&E holds Food, and Food holds Beer Reviews, Wine Reviews, Restaurant Reviews and Cooking.

A subsection page hardcoded an empty strip, on the premise that a subsection had no children to show. So /food would have listed its articles with no way to reach the four categories beneath it.

Both kinds of page now read the same subsections field, which the CMS sets on subsection responses too. It is absent or empty for the leaf subsections — still most of them — and the strip then renders as nothing, exactly as before.

Depends on DrexelTriangle/triangle-cms#216, which is what populates the field. Until that ships this is a no-op: the field is simply absent and ?? [] covers it.

astro check clean.

🤖 Generated with Claude Code

The CMS taxonomy is three levels now: A&E holds Food, and Food holds
Beer Reviews, Wine Reviews, Restaurant Reviews and Cooking. A
subsection page hardcoded an empty strip on the premise that a
subsection had no children to show, so /food would have listed its
articles with no way to reach the four categories beneath it.

Both kinds of page read the same field, which the CMS now sets on
subsection responses too. It is absent or empty for the leaf
subsections -- still most of them -- and the strip then renders as
nothing exactly as it did before.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@ssavutu
ssavutu merged commit f271e1d into main Aug 13, 2026
1 check passed
@ssavutu
ssavutu deleted the feat/nested-subsection-strip branch August 13, 2026 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant