Skip to content

feat(seo): apply full favicon set with sharp SVG icon#7

Merged
MattNotarangelo merged 1 commit into
mainfrom
feat/favicon-set
Jun 26, 2026
Merged

feat(seo): apply full favicon set with sharp SVG icon#7
MattNotarangelo merged 1 commit into
mainfrom
feat/favicon-set

Conversation

@MattNotarangelo

Copy link
Copy Markdown
Owner

Background

  • The site previously declared only two PNG favicons (favicon.png, favicon-96x96.png). This gives blurry icons at non-native sizes and no coverage for Apple touch icons, Android home-screen icons, or PWA install metadata.
  • A complete, purpose-designed icon package is now available, so we can serve a sharp, scalable icon across all surfaces.

What Has Changed

  • Added a full favicon set to public/: favicon.svg, favicon.ico, favicon-48x48.png, favicon-96x96.png, apple-touch-icon.png, android-chrome-192x192.png, android-chrome-512x512.png, and site.webmanifest.
  • Rewrote the <head> icon block in index.html to declare the SVG first (type="image/svg+xml") so capable browsers render the crisp scalable icon, with .ico/PNG fallbacks, the apple-touch-icon, the manifest link, and a theme-color meta (#121a28).
  • Removed the now-unreferenced public/favicon.png.

Notes

  • No CSP change needed: img-src 'self' covers the icons and manifest-src falls back to default-src 'self'.
  • site.webmanifest uses root-absolute icon paths, correct for serving at the root of caveviewer.pages.dev.

Screenshots/Video

  • Leave for author

Checklist

  • Self-review completed
  • Tested locally

Verification

  • npm run build (tsc + vite) passes clean; all 8 assets emit to dist/ and Vite rewrites references to relative paths per base: "./".

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 26, 2026

Copy link
Copy Markdown

Deploying caveviewer with  Cloudflare Pages  Cloudflare Pages

Latest commit: c78e03c
Status: ✅  Deploy successful!
Preview URL: https://8a5edb69.caveviewer.pages.dev
Branch Preview URL: https://feat-favicon-set.caveviewer.pages.dev

View logs

Replace the two-PNG favicon setup with a complete icon package:
SVG (preferred for sharp, scalable rendering), .ico and PNG
fallbacks, an apple-touch-icon, Android Chrome icons, and a web
manifest with theme colour. Drops the now-unreferenced favicon.png.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@MattNotarangelo MattNotarangelo merged commit 2dd7978 into main Jun 26, 2026
2 checks passed
@MattNotarangelo MattNotarangelo deleted the feat/favicon-set branch June 26, 2026 01:57
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