Skip to content

docs: add higher-resolution favicons for Google Search - #627

Merged
max-sixty merged 1 commit into
mainfrom
favicon
Jan 14, 2026
Merged

max-sixty merged 1 commit into
mainfrom
favicon

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Summary

  • Add 48x48 favicon to meet Google's recommended minimum for search results
  • Add 180x180 apple-touch-icon for iOS home screen bookmarks
  • Update base.html with proper sizes attributes for browser selection

Test plan

  • Verify favicon files are served correctly after deploy
  • Check favicon appears in browser tabs across browsers

This was written by Claude Code on behalf of max-sixty

Google recommends favicons of at least 48x48 pixels for proper display
in search results. The previous 32x32 favicon was below this threshold.

Changes:
- Add favicon-48.png (48x48) as primary favicon
- Add apple-touch-icon.png (180x180) for iOS home screen
- Update base.html to include sizes attributes for browser selection

Co-Authored-By: Claude <[email protected]>
@max-sixty
max-sixty merged commit be8959e into main Jan 14, 2026
@max-sixty
max-sixty deleted the favicon branch January 14, 2026 19:02
max-sixty pushed a commit that referenced this pull request Nov 6, 2026
The Astro rebuild (#3866) moved `favicon-48.png` and
`apple-touch-icon.png` into `docs/public/` but dropped the `<link>` tags
that #627 had added to the old Zola base template. Since then every page
emits only `<link rel="shortcut icon" href="/favicon.png">` (32×32).
This PR adds the two links back through Starlight's `head` option, so
the larger icons are discoverable again.

This restores metadata. It doesn't fix the generic globe in Google
Search (#4718), because nothing establishes the cause. [Google's favicon
guidance](https://developers.google.com/search/docs/appearance/favicon-in-search)
accepts a square icon of at least 8×8 and supports `shortcut icon`, so
the existing 32×32 icon is not inherently ineligible. Advertising a
48×48 icon follows Google's recommendation for a larger size, but
whether it changes the search result is unverified.

A new `built-site.test.mjs` case requires both links on every rendered
page, so they can't drop out silently again. It fails on the current
build and passes with this change. `npm run check`, `npm test`, and the
rest of `test:site` pass locally. The exception is the existing
social-card asset check, which needs the `worktrunk-assets` clone that
CI fetches and this sandbox doesn't have.

Refs #4718 — automated triage

---------

Co-authored-by: worktrunk-bot <[email protected]>
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