Link the teachers' names inside the class lines #13

Merged
forgejo-admin merged 1 commit from link-teachers-inline into main 2026-08-04 22:22:30 +00:00

Both class slots — Friday's Soltadas and Saturday afternoon's Colgadas — now link "Sandy Ninh & Steve Carruthers" inside the sentence itself, straight to their bio card.

Replaces the credit pill rather than adding to it

The previous PR gave those sessions a Classes with Sandy Ninh & Steve Carruthers credit, which sat directly above a slot line naming them again — the card said it twice. The slot is where the names actually belong, so the credit is gone and the link lives in the sentence.

How

splitSlot() splices the slot text around the credited name so the name can be an <a> while the rest stays prose. It throws if the name is not present in the text, so a future edit that reworded the line would fail the build rather than silently rendering an unlinked sentence — same posture as the existing dead-anchor guard.

Styled as an inline underlined link rather than another pill, so it reads as part of the sentence.

Verified

astro check 0 errors, lint:css clean, build green. Confirmed both class lines render the anchor in the built HTML, and re-diffed every href="#bio-…" against every id="bio-…" — all resolve.

🤖 Generated with Claude Code

Both class slots — Friday's *Soltadas* and Saturday afternoon's *Colgadas* — now link "Sandy Ninh & Steve Carruthers" inside the sentence itself, straight to their bio card. ## Replaces the credit pill rather than adding to it The previous PR gave those sessions a `Classes with Sandy Ninh & Steve Carruthers` credit, which sat directly above a slot line naming them again — the card said it twice. The slot is where the names actually belong, so the credit is gone and the link lives in the sentence. ## How `splitSlot()` splices the slot text around the credited name so the name can be an `<a>` while the rest stays prose. It **throws if the name is not present in the text**, so a future edit that reworded the line would fail the build rather than silently rendering an unlinked sentence — same posture as the existing dead-anchor guard. Styled as an inline underlined link rather than another pill, so it reads as part of the sentence. ## Verified `astro check` 0 errors, `lint:css` clean, build green. Confirmed both class lines render the anchor in the built HTML, and re-diffed every `href="#bio-…"` against every `id="bio-…"` — all resolve. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
"Class with Sandy Ninh & Steve Carruthers (Beyond Beginners)" now links
the names themselves to their bio, on both class slots.

Drops the separate "Classes with…" credit pill this replaces: it sat
directly above a slot line naming them again, so the card said it twice.
The slot is where the names belong, so the link goes there.

splitSlot() splices the sentence around the credited name and throws if
the name is not in the text, so a mismatch fails the build instead of
quietly rendering plain prose.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
forgejo-admin deleted branch link-teachers-inline 2026-08-04 22:22:30 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
celilo/tango-nexus!13
No description provided.