The header and footer had five URLs hardcoded from the local fixtures.
On a site whose pages are named differently, that is five 404s in the
navigation, which is exactly what happened on chrnx.dev.
Both now read an assigned menu and fall back to the built-in pages when
no menu is set or the assigned one is empty.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Block viewScript and style URLs are versioned from block.json, not
CHRNX_VERSION, so they kept serving cached JavaScript after the theme
version moved. The theme toggle looked broken because the browser was
still running the script that looked for radio inputs.
All block.json versions now track CHRNX_VERSION, and a smoke test fails
if any of them drift, so this cannot come back silently.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
An allowlist so a new dev file is excluded by default, a version check
against style.css, and a refusal to ship tests, scripts or vendor.
The first package was 34MB because every img fallback pointed at the
design master: a browser without AVIF or WebP downloaded 3.4MB per
image. That was a live cost, not just a packaging one. Fallbacks point
at the generated WebP now and masters stay out of the zip, which is 3MB.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
About and Projects had a figure floating on a CSS gradient while Music
and Podcasts had a whole world behind theirs. They get their own
landscape backdrop, which is what made the four read as one series.
Adds placeholder art for a release without a cover and a post without a
featured image, composited over the per-topic accent so a grid of
missing images still varies. Tracks borrow their album cover first.
The generated inventory grows to 76 files. Placeholders encode at lower
quality because they sit at half opacity behind text, which kept the
payload inside its budget instead of raising it again.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Reading settings take an HTTPS endpoint and the email field name, so
the form posts straight to Buttondown, Mailchimp, MailerLite or
anything else without the theme picking one. Without an endpoint the
block renders nothing rather than a form that goes nowhere.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Albums were three hardcoded cards. An album is a chrnx_release term
now, with cover, status and listening links; its archive is the album
page with an ordered tracklist. A song is a post carrying lyrics and
notes, its track number, and the audio.
The player is a native audio element, no library and no JavaScript.
Platform icons render only when a URL exists, so nothing points at a
service the release is not on yet.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The theme switch was three labelled radios that wrapped the header onto
a second line with long translations. It is three SVG buttons now, with
search and menu sharing the same language: no resting outline, a filled
chip for the active choice.
Radios gave arrow-key roving for free, so the group reimplements it
rather than losing it. The first chip colour put accent on accent and
failed WCAG AA; the label carries full contrast instead. Mobile targets
sit at 45px because a floor of exactly 44 rounds to 43.99997 in Firefox.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Projects were hardcoded h3 elements in a pattern: no URL, no feed, no
search, uneditable without touching PHP. They follow the podcast model
now, a chrnx_topic term plus posts.
Adds a chrnx_project_featured flag with an editor toggle so the stage
lists chosen projects first and fills with the most recent. Sticky was
already spoken for by the home featured stories, so the choice needed
its own signal. journal-stream gains a pinned topic attribute, reusing
the archive filter, pagination and empty state it already had.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The single/page/404 templates set contentSize to 70ch, which resolves
against each child's own font size: the display-size h1 asked for
~2660px and broke full bleed while the body stayed narrow. They now
inherit the 720px from theme.json.
Also drops the About facets that duplicated the portrait, adds the
missing prefers-color-scheme branch for the character stage copy
surface (dark text on a dark panel in System light), loads
components.css in the editor, and replaces the unstyled index
fallback with the journal stream.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>