Generalize breadcrumbs to nested paths - #63
Conversation
Breadcrumbs now build one crumb per path segment, so a custom nested page like /collections/[slug] gets a linked intermediate crumb (named by humanizing the segment) instead of jumping straight from Home to the page title. The trail also feeds the BreadcrumbList schema, and the last crumb gets aria-current="page". Injected core routes are all single-segment, so their rendering is unchanged. New optional brandColor config field (validated as a hex color) sets the Safari pinned-tab icon color and Windows tile color, which were hardcoded to the favicon-generator template values. Both restore customizations whiskey.fm carried in its fork before converting to the npm package. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reachedNext included review available in 53 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Superseded by #66, which carries the same breadcrumbs generalization plus an override hook, and drops the legacy mask-icon/msapplication-TileColor tags (and their public/ assets) instead of adding a brandColor config for them. |
What
Two Layout-level customization gaps that surfaced when converting whiskey.fm (www-starpod) from a fork into an npm consumer — the fork carried both, and the package had no hook for either.
Nested breadcrumbs
Breadcrumbs.astronow builds one crumb per path segment: a custom nested page like/collections/[slug]rendersHome > Collections > <title>with the intermediate crumb linked and named by humanizing its segment, instead of jumping straight from Home to the page title. The full trail feeds theBreadcrumbListschema, and the last crumb getsaria-current="page". All injected core routes are single-segment, so their rendering is unchanged (verified against the built/aboutand episode pages).Verification
astro checkand a full reference-site build pass./collections/test-crumbpage: linkedCollectionscrumb,aria-current, 3-item schema, flowing into both head tags.🤖 Generated with Claude Code