Skip to content

infra: route description to title slide; add .takeaways primitive#38

Merged
lopes merged 3 commits into
mainfrom
infra/deck-description-takeaways
Jul 7, 2026
Merged

infra: route description to title slide; add .takeaways primitive#38
lopes merged 3 commits into
mainfrom
infra/deck-description-takeaways

Conversation

@lopes

@lopes lopes commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Route description: to the title-slide sub-line. Overrides Quarto's default reveal.js title-slide partial via decks/_partials/title-slide.html, wired for every deck in decks/_metadata.yml. Authors write the one-line hook once; it now feeds both the title slide and the OG card. subtitle: is dropped from deck front matter everywhere.
  • Add .takeaways / .takeaway / .takeaway-label composition primitive to both vigil-reveal themes — auto-fit grid of bordered cards for 2–4 parallel takeaways / caveats / rules / steps. Replaces the inline <div style="display: grid; …"> pattern deck authors were reaching for. Documented in the scaffold-deck skill (SKILL.md + reveal-conventions.md), and in decks/README.md.
  • Convert the lantana pilot (decks/lantana-little-help-claude/) to the new pattern — description becomes the single hook, slide 8's inline-styled grid becomes ::: {.takeaways} markup.
  • Minor pre-commit + gitignore tweaks. Pre-commit now permits _-prefixed support dirs under decks/ (like decks/_partials/) as an exception to the escape-hatch-HTML-under-assets/ rule. Gitignore has a matching un-ignore for decks/_partials/*.html so the partial is tracked despite the global *.html exclusion.

The scaffold-deck skill files under ~/.config/claude/skills/ (in dotfiles) got parallel updates — SKILL.md and references/reveal-conventions.md now drop subtitle: from templates, add .takeaways to the design vocabulary, and update the shape decision table. Those aren't in this PR (different repo).

Test plan

  • quarto render decks/lantana-little-help-claude/index.qmd --to revealjs succeeds locally
  • Rendered title slide's <p class="subtitle"> contains the description: value (was previously the subtitle: value)
  • Slide 8 renders as clean <div class="takeaways"><div class="takeaway">…</div></div> — no inline style= attributes
  • ./scripts/pre-commit.sh passes on the modified pilot
  • CI (integration.yml) reruns pre-commit + quarto render — confirm green
  • Visual spot-check in quarto preview: title slide sub-line reads well; takeaways cards lay out at 2 wide (or 2×2) at projection resolution
  • Sanity: any other decks (none exist yet besides the pilot) render unchanged — the partial + .takeaways are additive, so this is theoretical for now

lopes added 3 commits July 7, 2026 17:44
…tive

Override Quarto's default reveal.js title-slide partial so the sub-line
reads $description$ instead of $subtitle$. Wired in decks/_metadata.yml
so every deck inherits it; authors write the hook once, and it serves
both the title slide and the OG card.

Add .takeaways/.takeaway/.takeaway-label to both vigil-reveal themes: an
auto-fit grid of bordered cards for 2-4 categorical claims / rules /
caveats — replaces the inline-styled <div style="grid…"> pattern.

Pre-commit now permits underscore-prefixed support dirs under decks/
(e.g. decks/_partials/) as an exception to the escape-hatch HTML rule,
matching Quarto's "don't render" convention for _-prefixed paths.
… to .takeaways

Front matter: single `description:` now feeds both the title-slide sub-line
(via decks/_partials/title-slide.html) and the OG card — the two hooks
that previously duplicated across `subtitle:` + `description:` collapse
into one.

Slide 8: replace the inline `<div style="display: grid; …">` with `.takeaways`
fenced-div markup — same four cards, same content, styling moves to the
vigil-reveal theme.
@lopes
lopes force-pushed the infra/deck-description-takeaways branch from 75fb18d to e9aa5d3 Compare July 7, 2026 20:46
@lopes
lopes merged commit a5363c2 into main Jul 7, 2026
1 check passed
@lopes
lopes deleted the infra/deck-description-takeaways branch July 7, 2026 20:48
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