Repository navigation
theme: use the 0.6 theme API - #23
Merged
Merged
Conversation
contentListEntries for content lists (field where/orderBy, expiry), entryFields + EntryFields on entries, withStructuredData for entries, and a collection feed link on /blog and its posts only. Rendered HTML is unchanged except that link (static build diff and cloudhal dev). 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.
Brings the theme to the 0.5–0.6 theme API without changing the design.
contentListEntriesreplaces the hand-written list loop, so content lists respect fieldwhere/orderByand collection expiry.source.entryFieldsand render them withEntryFields, which draws nothing while posts have no field definitions. Thedetails,yesandnostrings are added in en, tr and ja.withStructuredData, so a structured-data preset would replaceBlogPosting. None is set, so the JSON-LD is identical.Rendered HTML (static build diff over the whole output, confirmed with
cloudhal dev):/blogand the two posts change, each gaining one line:<link rel="alternate" type="application/rss+xml" title="blog · Cloudhal" href="https://cloudhal.com/blog/rss.xml">.Checks:
pnpm buildandWORKERS_CI=1 pnpm exec cloudhal deploy --dry-runpass.Content note: the feed title says "blog" because the collection has no label. Setting its plural label in collection settings (e.g. "Blog") fixes that.
🤖 Generated with Claude Code