Skip to content

theme: use the 0.6 theme API - #23

Merged
Madraka merged 1 commit into
mainfrom
theme/0.6-api
Oct 23, 2026
Merged

Madraka merged 1 commit into
mainfrom
theme/0.6-api

Conversation

@Madraka

@Madraka Madraka commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Brings the theme to the 0.5–0.6 theme API without changing the design.

  • contentListEntries replaces the hand-written list loop, so content lists respect field where/orderBy and collection expiry.
  • Entry pages read their typed fields with source.entryFields and render them with EntryFields, which draws nothing while posts have no field definitions. The details, yes and no strings are added in en, tr and ja.
  • Entries get withStructuredData, so a structured-data preset would replace BlogPosting. None is set, so the JSON-LD is identical.
  • A collection feed link appears only on /blog and its posts (not on the home page, unlike the starter).

Rendered HTML (static build diff over the whole output, confirmed with cloudhal dev):

  • Only /blog and 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">.
  • Everything else is byte-identical.

Checks: pnpm build and WORKERS_CI=1 pnpm exec cloudhal deploy --dry-run pass.

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

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>
@Madraka
Madraka merged commit 73fbdb4 into main Oct 23, 2026
2 checks passed
@Madraka
Madraka deleted the theme/0.6-api branch October 23, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant