Skip to content

feat(theme): the 0.6.2 blog starter's theme - #9

Merged
Madraka merged 1 commit into
mainfrom
chore/theme-0.6.2
Oct 26, 2026
Merged

Madraka merged 1 commit into
mainfrom
chore/theme-0.6.2

Conversation

@Madraka

@Madraka Madraka commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

What

The theme copy under src/ now matches the blog starter that @cloudhal/cli 0.6.2 ships. Until now the pins moved (try#8) but the theme stayed on an earlier starter. After this PR, diff -r against node_modules/@cloudhal/cli/dist/assets/starters/blog/src shows no differences apart from src/playground/.

File From the starter
src/components/Article.astro, src/strings.ts typed fields as a "Details" list under the cover (RFC-0041 §9); "Details" and yes/no in en, tr and ja
src/pages/[...path].astro content lists via contentListEntries (RFC-0042 field queries), collection feed links, structured data (withStructuredData), entry fields
src/pages/[...path]/rss.xml.ts collection feed paths (RFC-0042 §5)
src/styles/features/tokens.css body links no longer recolour surface buttons (.ch-richtext a:not(.ch-button))

Kept as they were (the playground's own): src/playground/**, astro.config.mjs, tsconfig.json, public/_headers, the favicons, public/demo/ and public/index.html. In the five files above, every replaced line came from the earlier starter; none were playground edits.

Not deployed. Run pnpm run deploy after merging when you want it live.

Verified (locally)

  • pnpm check passes (Biome, astro sync + TypeScript, 2 tests). pnpm build passes; its warnings are the same as the current main build's.
  • The built CSS contains .ch-richtext a:not(.ch-button){color:var(--ch-color-link)}.
  • wrangler dev with a new session:
    • The landing page and Studio load. GET /api/sites/site_playgrounddemo/entries returns all 9 entries.
    • The home page preview renders with its 9 article links.
    • The "Welcome to the playground" preview renders the article and its body.
  • Local-only artifact, not from this change: in wrangler dev the preview's cover image is blocked by the preview CSP, img-src https: data:, because localhost is http. On try.cloudhal.com the same preview loads it.

🤖 Generated with Claude Code

The theme copy under src/ is now the blog starter that @cloudhal/cli
0.6.2 ships. It had stayed on an earlier starter while the pins moved:

- Article.astro and strings.ts: typed fields as a "Details" list under
  the cover (RFC-0041 §9), with the words in en, tr and ja.
- [...path].astro: content lists through contentListEntries (RFC-0042
  field queries), collection feed links, structured data
  (withStructuredData) and entry fields.
- [...path]/rss.xml.ts: collection feed paths (RFC-0042 §5).
- tokens.css: body links no longer recolour surface buttons
  (.ch-richtext a:not(.ch-button)).

The playground's own files stay as they were: src/playground/,
astro.config.mjs, tsconfig.json, public/_headers, the favicons and the
demo media. The replaced lines were all the earlier starter's; none were
playground edits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Madraka <8898640+Madraka@users.noreply.github.com>
@Madraka
Madraka merged commit a4d077f into main Oct 26, 2026
1 check passed
@Madraka
Madraka deleted the chore/theme-0.6.2 branch October 26, 2026 21:51
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