Repository navigation
feat(renderer): per-collection feeds and structured-data guide (RFC-0042 step 6) - #108
Merged
Merged
Conversation
… step 6) - A pre middleware serves <prefix>/rss.xml (and per locale) for each collection with a fixed prefix when the theme answers 404: feed:false and expiry respected, the site feed's cache headers and tags. Static builds list the paths, so old themes' [...path]/rss.xml route writes them too. collectionFeedLink for themes; the starter links feeds on entries and listing pages. - Previews apply contentList where/orderBy with the live evaluator (renderSectionHtml listing option). - The workerd route sweep covers derived gates (unlist and hide). - docs/guides/structured-data.md; renderer README. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Madraka <8898640+Madraka@users.noreply.github.com>
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.
Step 6, the last step of RFC-0042's rollout (ADR-0044), plus two gaps left from step 3 (#105).
Per-collection feeds
premiddleware in thecloudhal()integration serves<prefix>/rss.xml, and its locale variants, only when the theme's own routes answer 404.feed: falseand expiry (unlist and hide), and use the site feed's cache headers capped at the next gate, pluslistCacheTag./{slug}) get no feed.staticPaths().feedsnow lists collection feeds too, so the existing[...path]/rss.xmlroute (old frozen themes have it as well) prerenders them through the middleware.collectionFeedLink(site, collection, origin, locale?)for themes. The starter links feeds on entry pages and listing pages./blog/rss.xml), and the home page links a posts feed next to the site feed.Gaps closed from step 3
where/orderBy:renderSectionHtmltakes alistingoption and uses the live renderer's evaluator. Studio, API and MCP previews now list correctly.unlistgate the entry page stays and is listed on no other route. Past ahidegate it is 404 and leaks on no route, withno-store. Collection feeds are served on the Worker.Docs:
docs/guides/structured-data.md(presets, mapping, preview, expiry, field listings, listing pages, feeds, theme API), linked in the docs site; the renderer README is updated.Tests
/events/rss.xml).turbo typecheck20/20, Biome and size check are clean.Changeset: minor (
astro-renderer,cli).🤖 Generated with Claude Code