fix(seo): set explicit site name and search-ready favicon#5
Merged
Conversation
Google search results showed the site name as "Cloudflare" and a generic globe icon instead of the project's own. The page provided no site-name signal, so Google fell back to the pages.dev registered domain, and the 1019x1095 non-square favicon failed Google's square/multiple-of-48 favicon requirement. - Add og:site_name, og:title/description/type/url and a WebSite JSON-LD block so search engines label the result "Cave Survey Viewer". - Add application-name meta tag. - Add a 96x96 square favicon-96x96.png (centre-cropped from the source) and reference it with an explicit sizes hint, keeping the original as fallback. The JSON-LD is an application/ld+json data block, not executable script, so the existing strict script-src CSP is unaffected. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Deploying caveviewer with
|
| Latest commit: |
27af9d0
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://09e074c2.caveviewer.pages.dev |
| Branch Preview URL: | https://worktree-seo-site-metadata.caveviewer.pages.dev |
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.
Problem
The site's Google search result was rendering wrong (see below):
og:site_name, structured data, etc.), so it fell back to the sharedpages.devregistered domain — which it associates with Cloudflare.public/favicon.pngis 1019×1095 — non-square and not a multiple of 48px, which fails Google's favicon-for-search requirements, so it gets rejected.The title and meta description were already rendering correctly.
Changes
og:site_name,og:title,og:description,og:type,og:url, and aWebSiteJSON-LD block so search engines label the result Cave Survey Viewer.application-namemeta tag.favicon-96x96.png(centre-cropped from the source image), referenced with an explicitsizeshint; the originalfavicon.pngstays as a fallback.The JSON-LD is an
application/ld+jsondata block (not executable JS), so the existing strictscript-src 'self'CSP is unaffected.Test plan
npm run buildpasses (tsc --noEmit && vite build).favicon.pngandfavicon-96x96.pngare emitted todist/.🤖 Generated with Claude Code