1.6 KiB
1.6 KiB
Social Preview Images Todo
Goal
Fix WhatsApp and social link previews so the site no longer shows the Vue-looking favicon and instead uses Rabbi Gerzi branded images.
Todo
- Prepare replacement assets:
frontend/rabbi_gerzi/public/favicon.pngat512x512.frontend/rabbi_gerzi/public/favicon.icowith common small icon sizes.- Optional
frontend/rabbi_gerzi/public/favicon.svg. - Optional
frontend/rabbi_gerzi/public/apple-touch-icon.pngat180x180. frontend/rabbi_gerzi/public/assets/social-preview.pngat1200x630.
- Update
frontend/rabbi_gerzi/index.html:- Point favicon links at the replacement files.
- Add Open Graph title, description, type, URL, image, width, and height.
- Add Twitter card title, description, and image tags.
- Use
https://rabbigerzi.com/assets/social-preview.pngfor the absolute preview image URL.
- Add or update a Cypress check that verifies:
- favicon metadata points at the intended files,
og:imageandtwitter:imageare present,- page title and description metadata match the site.
- Run frontend verification from
frontend/rabbi_gerzi/:npm run test:e2e -- --spec cypress/e2e/home.cy.tsnpm run formatnpm run lintnpm run type-check
Notes
- WhatsApp may cache old previews after deploy. If that happens, rename the
social image file, for example to
social-preview-v2.png, and updateindex.htmlto force a fresh scrape. - Public files in Vite are served from the site root, so
public/assets/social-preview.pngbecomes/assets/social-preview.png.