Link the teachers' names inside the class lines #13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "link-teachers-inline"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 Carrutherscredit, 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 check0 errors,lint:cssclean, build green. Confirmed both class lines render the anchor in the built HTML, and re-diffed everyhref="#bio-…"against everyid="bio-…"— all resolve.🤖 Generated with Claude Code