Skip to content

Add site favicon derived from the book cover - #226

Merged
adibender merged 1 commit into
mainfrom
add-favicon
Jul 28, 2026
Merged

Add site favicon derived from the book cover#226
adibender merged 1 commit into
mainfrom
add-favicon

Conversation

@adibender

Copy link
Copy Markdown
Collaborator

Adds a favicon for the book website, distilled from the cover artwork (Figures/cover-new.svg).

The mark is a stopwatch whose bezel is a gear, so it carries both the timing and the machinery of the cover, with the three gold/parchment/cyan hands on the cover's navy #2A3444. The survival curves, inner gear train and star-chart rings are dropped — they are unreadable below ~48px.

Eight teeth rather than twelve: at 16px twelve dissolve into a serrated blur, while eight stay distinct and still read as a cog.

Files

File Size Purpose
Figures/favicon.svg 512² editable source
Figures/favicon.png 32² referenced by Quarto
Figures/favicon.ico 16/32/48 legacy fallback
Figures/apple-touch-icon.png 180² iOS home-screen

Integration

One line in _quarto.yml:

book:
  favicon: Figures/favicon.png

Verified against a scratch book project: Quarto emits <link href="./Figures/favicon.png" rel="icon" type="image/png"> and copies the asset into _book/Figures/. The path is rewritten per page, so it applies across the whole book, not just the landing page.

The .ico and apple-touch variants are committed for completeness but not yet referenced — Quarto's favicon key takes a single file, and wiring the others up needs an include-in-header block that only resolves from the site root. The 32px PNG covers every current browser.

Notes

  • The full book was not rendered as part of this change; only the isolated config check above.
  • Browsers cache favicons aggressively, so a hard reload may be needed after deploy.

Distil the cover artwork (Figures/cover-new.svg) into an icon that stays
legible at 16px: a stopwatch whose bezel is a gear, carrying both the
timing and the machinery of the cover, with the three gold/parchment/cyan
hands on the cover's navy. The survival curves, inner gear train and
star-chart rings are dropped as they are unreadable at favicon sizes.

Eight chunky teeth rather than twelve: at 16px twelve teeth dissolve into
a serrated blur, while eight stay distinct and still read as a cog.

Wire favicon.png into the book config; Quarto emits the <link rel="icon">
tag and copies the asset on every page.

The .ico and apple-touch-icon variants are included for completeness but
not yet referenced, as Quarto's favicon key takes a single file.
@adibender
adibender merged commit 3bb2830 into main Jul 28, 2026
1 check passed
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