Skip to content

Add Typst path for blog-post skill thumbnails#2018

Open
cderv wants to merge 3 commits intomainfrom
skill-blog-post-typst-thumbnail
Open

Add Typst path for blog-post skill thumbnails#2018
cderv wants to merge 3 commits intomainfrom
skill-blog-post-typst-thumbnail

Conversation

@cderv
Copy link
Copy Markdown
Member

@cderv cderv commented May 6, 2026

The quarto-blog-post skill (under .claude/skills/blog-post/) only documented the HTML+SVG+screenshot path for creating blog post thumbnails. That path is fine for icon compositions with third-party SVGs, but heavy when the thumbnail is text-only or features a programmatic diagram.

The recent Parsing & Source Maps post showed Typst with cetz suits diagram-driven thumbnails well — but the source assets (logo SVG, page setup, cetz scaffold) lived only in one author's local checkout, so the workflow wasn't reusable.

What this adds

  • assets/thumbnail-text.typ — text-only template (page setup, font fallback chain, logo block, title slot)
  • assets/thumbnail-diagram.typ — same plus a cetz canvas with node/edge helpers preloaded
  • assets/quarto-logo-trademark-light.svg — white-fill wordmark derived from the brand kit (was missing from the repo entirely)
  • references/typst-thumbnail.md — full guide: prerequisites (quarto typst), setup, palette, font fallback, cetz pin, scaffold snippets, render command, anti-patterns

Workflow change

The decision between Typst and HTML+SVG is surfaced as an explicit question in step 7 of the skill workflow rather than letting the assistant silently pick one. A Choosing your path table at the top of thumbnail-guide.md documents the criteria. Release posts default to HTML+SVG so the established release-thumbnail visual identity (steel blue + Quarto logo + version + small thematic emoji) stays consistent across releases — switching to Typst there is a stylistic call, not a default.

Backfill

The second commit copies quarto-logo-trademark-light.svg into docs/blog/posts/2026-05-05-quarto-2-parsing/ so the existing thumbnail.typ renders on a fresh checkout — it was previously broken because the SVG only existed on the original author's machine.

Test plan

  • quarto typst compile renders 2026-05-05-quarto-2-parsing/thumbnail.typ to a 2400×1260 PNG matching the committed thumbnail
  • Both bundled templates render to 2400×1260 PNGs from a clean dir (template + logo SVG copied in)
  • Reviewer can read references/typst-thumbnail.md end-to-end and follow it without needing the canonical post file as the only example

cderv added 3 commits May 6, 2026 19:54
Existing blog-post skill only documented the HTML+SVG+screenshot path,
which is heavy when the thumbnail is text-only or features a programmatic
diagram. The 2026-05-05-quarto-2-parsing post showed Typst+cetz works well
for diagram-driven thumbnails but the source assets weren't bundled, so
the workflow lived only in one author's local checkout.

This commit bundles the Typst path with everything contributors need:
the page-setup template (text-only and diagram variants), a cetz
node/edge scaffold matching the parsing post's graph helpers, and the
white-on-blue Quarto wordmark SVG. The decision between Typst and HTML+SVG
is surfaced as an explicit question in step 7 of the skill workflow rather
than letting Claude silently pick. Release posts default to the existing
HTML+SVG flow so the established release-thumbnail visual identity stays
consistent.
thumbnail.typ for the parsing post references quarto-logo-trademark-light.svg
co-located in its directory, but the SVG was never committed — only existed
on the original author's local checkout. Renders failed on a fresh checkout.

Add the white-fill wordmark SVG (same one bundled in the blog-post skill
assets dir) so quarto typst compile works for any contributor. Self-contained
post, matches the convention of co-locating thumbnail.png with index.qmd.
Symmetric to the white-fill variant for dark backgrounds. Authors adapting
a template to the light palette (#F0F5F9) need the dark-text wordmark to
keep the brand mark legible. Both files derive from the same brand-kit
source and differ only in fill colors. typst-thumbnail.md gets a small
table calling out which variant matches which background.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 6, 2026

📝 Preview Deployment

🔍 Full site preview: https://deploy-preview-2018.quarto.org

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