Repository navigation
Mark preview builds, and add a generic content-collection loader - #29
Open
danielnaab wants to merge 3 commits into
Open
danielnaab wants to merge 3 commits into
danielnaab wants to merge 3 commits into
Conversation
Preview builds (any base path other than /) now carry noindex and a 'Preview, not final' banner. src/build/collections.ts loads and validates content/<name>/*.md with front-matter, and checks references between items, so new page types need only a schema and a template. Pot-Run: b872
danielnaab
temporarily deployed
to
preview/labs-content-collections
December 5, 2026 04:03 — with
GitHub Actions
Inactive
danielnaab
temporarily deployed
to
preview/labs-content-collections
December 5, 2026 04:11 — with
GitHub Actions
Inactive
This branch was successfully deployed
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.
Groundwork for trying out new kinds of Labs content on preview branches. Production looks exactly the same.
What changes
labs.flexion.us/preview/<branch>/) now has a banner, "This is a preview of proposed changes, not the live site.", linking to the live site, andnoindex, nofollowso search engines don't index drafts. Production has neither.src/build/collections.ts). It readscontent/<name>/<slug>.mdwith YAML front-matter, validates fields with errors that name the file and the field, and fails the build on references to items that don't exist. A new page type then needs only a small schema and a template. Nothing onmainuses it yet; preview branches will.Checks
bun test(unit, views, build): 95 pass, including new loader and layout testsSITE_BASE_URL=/preview/x/) carries the banner andnoindexDocs:
docs/content-collections.md(new), and a section indocs/deployment.mdon how previews are marked. The design-system page shows the new preview banner.