Repository navigation
feat: give the guide its own icon and site name in search results - #19
Merged
Merged
Conversation
Co-authored-by: Ferrin <[email protected]> Co-authored-by: noorelmosrati <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
Musa wants the Potluck guide (docs.potluck.fermulate.com) to show a proper site name and its own logo in Google search results instead of the bare domain and no icon. Musa confirmed the name is 'Potluck guide' (matches the existing Starlight title). The guide used to share Potluck's app favicon; Musa asked for something unique that mixes the Potluck bowl with docs, so favicon.svg is now a recipe card tucked into the Potluck bowl (same bowl, lid line and shine paths as the app's PotMark, light colors with a prefers-color-scheme dark variant inside the SVG). Added favicon.ico (16/32/48, Google wants a multiple of 48px) via a head link with sizes 32x32 so browsers keep the SVG, and schema.org WebSite JSON-LD in the Starlight head config (name Potluck guide, alternateName Potluck docs and Potluck help, url https://docs.potluck.fermulate.com/, publisher Fermulate). The header SiteTitle mark is deliberately left as the plain bowl. npm run build passes with the link check. The PR should request Ferrin-Y and noorelmosrati as reviewers with a Credits line naming all three co-founders (Musa directed it); commits carry Co-authored-by trailers for Ferrin and Noor per Potluck decision D10. No AI attribution anywhere.
What Changed
public/favicon.svg(previously the app's pot icon) with a recipe card tucked into the Potluck bowl. It reuses the bowl, lid line, and shine shapes, and the SVG includes aprefers-color-scheme: darkvariant.public/favicon.icoand a<link rel="icon" href="/favicon.ico" sizes="32x32">head entry inastro.config.mjs. Search engines can use the ICO, and browsers still pick the SVG.WebSiteJSON-LD to the Starlightheadconfig: namePotluck guide, alternate namesPotluck docsandPotluck help, urlhttps://docs.potluck.fermulate.com/, publisher Fermulate. This gives Google a site name to show instead of the bare domain.Credits: Musa Kaleem, Ferrin (Ferrin-Y), and Noor (noorelmosrati).
Risk Assessment
✅ Low: The change only touches static head metadata and icon assets. The JSON-LD values, the ICO frames (16/32/48, 32bpp) and the SVG paths (bowl, lid and shine copied exactly from SiteTitle) all match the stated intent, and the header mark is unchanged.
Testing
I built the site with
npm run build(link check passed) and checked every built page's head: both icon links are on all 27 pages, and the parsed WebSite JSON-LD has exactly the intended name, alternateName, url and publisher. favicon.ico decodes to 16, 32 and 48 px entries. I served the site with astro preview and loaded it in Chromium: the browser fetched only favicon.svg, so the SVG still wins over the .ico. Light and dark screenshots show the recipe card in the bowl with the dark variant applied. The header mark is still the plain bowl with steam, and its bowl, lid and shine paths match the favicon. The commit has Co-authored-by trailers for Ferrin and Noor and no AI attribution. PR reviewers and the Credits line belong to the later PR phase and were not checked here. How Google actually renders the name and icon in search results can only be seen after deploy and crawl. I removed all transient build, dependency and browser artifacts from the worktree and stopped the preview server.Evidence: Build log (npm run build with link validation)
Evidence: Built head + JSON-LD + ICO directory check
pages checked: 27 bad: 0 icon links: <link rel="icon" href="/favicon.ico" sizes="32x32"/>, <link rel="shortcut icon" href="/favicon.svg" type="image/svg+xml"/> JSON-LD: WebSite, name 'Potluck guide', alternateName ['Potluck docs','Potluck help'], url https://docs.potluck.fermulate.com/, publisher Organization Fermulate ICO count 3: 16x16, 32x32, 48x48 (32bpp)Pipeline
Updates from git push no-mistakes
✅ **Intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
npm cithennpm run build(exit 0, starlight-links-validator: all internal links valid, 27 pages)Node script over builtdist/**/*.html: checked that every page has the favicon.svg (image/svg+xml) link, the/favicon.icosizes=32x32 link and exactly one JSON-LD block, and parsed that blockNode script decoding thedist/favicon.icoICONDIR header (entry count and sizes)astro preview --port 4329plus curl: favicon.svg 200 image/svg+xml, favicon.ico 200 image/x-iconPlaywright Chromium loaded http://localhost:4329/; the network log showed which favicon the browser fetchedPlaywright: read the header SiteTitle mark DOMPlaywright: an overlay rendering favicon.svg at 16/32/64/128 and favicon.ico at 16/32/48, screenshotted under prefers-color-scheme light and darkgit log -1 --format=%an%n%B 4599864: checked trailers and attribution✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.