feat(seo): branded social cards, /cv landing page, single-source meta - #11
Merged
Merged
Conversation
Fixes two LinkedIn share problems and hardens SEO benchmarks: - Pixelated logo: og:image/twitter:image were the 48x48 favicon. Add a 1200x630 branded share card (og-image.png) and point all OG/Twitter image tags at it. Person.image -> real 500x500 profile.png. - CV had no preview: a raw .pdf URL exposes no OG tags. Add a prerendered /cv landing page (cv-thumb preview + View/Download + CreativeWork JSON-LD) with its own cv-og.png card, so the shared URL renders a real preview. - Single source of truth: SeoHead now owns all SEO meta; remove the duplicated static block from index.html. This eliminates conflicting og:image/og:title/<title> tags that the prerenderer was emitting on every non-home route (latent bug that gave about/experience/toolbox the home page's social title). - Enrich head: og:image width/height/type/alt, og:locale, twitter:image:alt, apple-touch-icon, web manifest, light/dark theme-color, multi-size favicons. - Add /cv to sitemap.xml and the prerender include list; nginx serves the PDF inline and caches share/icon assets. scripts/og-image.cjs is a one-off author-time generator (not in the deploy build); the produced PNGs are committed under public/. Verified: build + prerender pass; each route emits one correct og:image / title / canonical; JSON-LD parses; 62 vitest tests pass; eslint clean. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Why
Two LinkedIn share problems, same root cause:
og:image(+twitter:image, JSON-LDPerson.image) pointed at the 48Γ48 favicon, so LinkedIn upscaled it β pixelated logo. And the CV is shared as a rawMitya_Kurs.pdfURL β a PDF has no HTML head, so LinkedIn can read no preview tags β no image.What
public/og-image.png) now backsog:image/twitter:image;Person.imageβ real 500Γ500profile.png./cvlanding page (src/pages/cv/cvPage.tsx): CV first-page thumbnail, View/Download buttons,CreativeWorkJSON-LD, and its owncv-og.pngcard β the shared URL renders a real preview.SeoHeadowns it all; removed the duplicated static block fromindex.html. This also fixes a latent pre-existing bug β the prerenderer was emitting two conflictingog:title/<title>tags on every non-home route (about/experience/toolbox were inheriting the home page's social title).og:image:width/height/type/alt,og:locale,twitter:image:alt,apple-touch-icon, web manifest, light/darktheme-color, multi-size favicons./cvadded tositemap.xml+ prerender include; nginx serves the PDF inline and caches share/icon assets.scripts/og-image.cjsis a one-off author-time generator (not wired into the deploy build); produced PNGs are committed underpublic/.Verification
npm run build+ prerender β β every route emits a single correctog:image(homeβog-image.png,/cvβcv-og.png),<title>, and canonical;noindexon 404./cvinspected in light/dark/mobile.β¦/Mitya_Kurs.pdfβhttps://profile.mitya.dev/cv.https://profile.mitya.dev/andhttps://profile.mitya.dev/cvin the LinkedIn Post Inspector to bust LinkedIn's OG cache.π€ Generated with Claude Code