Use design-system-base layout for blog and events pages#3
Merged
Conversation
The chobble-template removed the legacy news-archive.html and item.html layouts in favour of design-system-base.html with blocks. Migrate the blog index to use the design-system-base layout with markdown + items blocks, and override item.html locally so event pages render through design-system-base while keeping their existing markdown bodies. Also exclude the chobble-template submodule from the build sync so its filter pages don't get validated against unregistered collections.
Drop the bespoke _layouts/item.html shim and have every event use design-system-base.html directly via blocks. Each event now declares event-header (auto-renders title/subtitle/date/location/iCal), markdown for the body copy, and link-button for the back-link to the events index. Also bump the chobble-template submodule to pick up the event-* design-system blocks referenced here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The build was failing because the latest chobble-template removed the legacy
news-archive.htmlanditem.htmllayouts (replaced bydesign-system-base.html+ blocks), and because thechobble-templatesubmodule was being copied into the build'ssrc/tree where its filter pages were tripping the unregistered-collection validator.pages/blog.mdfromnews-archive.htmltodesign-system-base.html, moving the intro into amarkdownblock and adding anitemsblock for thenewscollection._layouts/item.htmlthat wrapsdesign-system-base.htmland renders event metadata (title, subtitle, date, location) plus the markdown body, mirroring the existing_layouts/news-post.htmlpattern.chobble-templatetorootExcludesinscripts/prepare-dev.jsso the submodule (only needed for thefile:toolkit dep) isn't synced into.build/dev/src/, where itsfiltered-products/filtered-propertiestemplates were referencing collections that aren't registered for this site.Test plan
bun run buildcompletes successfully and writes_site/_site/blog/index.htmlrenders the Button Kin Times intro and news listing_site/events/placeholder-online-game/index.htmlrenders title, date, location, and body content using the design-system bundlehttps://claude.ai/code/session_015B9tTjuZkaz7YMmgxu3knM
Generated by Claude Code