Skip to content

feat(demo): give the demo site real metadata and a social card - #34

Merged
killerwolf merged 3 commits into
mainfrom
feat/demo-seo-and-social-card
Sep 6, 2026
Merged

feat(demo): give the demo site real metadata and a social card#34
killerwolf merged 3 commits into
mainfrom
feat/demo-seo-and-social-card

Conversation

@killerwolf

Copy link
Copy Markdown
Owner

P1, items 10 and 11 of the discoverability plan.

Why

The demo page shipped a charset, a title reading VisualImageTool – Demos, and nothing else. No description, no canonical, no Open Graph tags. Two consequences:

  1. Search engines had no description to index it on.
  2. Every link to it — a tweet, a Slack message, a newsletter, a Reddit post — rendered as a bare URL with no preview. That silently caps click-through on all the off-page promotion work.

What changed

  • Meta — description, canonical, favicon and apple-touch-icon links, theme-color.
  • Open Graph + Twitter card — full set, summary_large_image.
  • demo/social-preview.jpg — the 1200×630 card the tags point at. Rendered from the demo page itself, so it shows the tool actually in use rather than a logo on a gradient. 93 KB.
  • On-page tagline — aligned with the meta description so the page and its preview say the same thing.

Two follow-ups this does not cover

The og:image URL only resolves after a demo deploy. The tags point at https://h4md1.fr/visual-image-tool/social-preview.jpg, which needs npm run publish:demo to exist. Worth deploying soon after merge, before sharing any links.

The GitHub repo social preview is a manual step. GitHub does not expose it through the API, so it cannot be set from here. demo/social-preview.jpg is sized correctly for it — it needs uploading by hand under Settings → General → Social preview. Until then, repo links keep rendering GitHub's generic auto-card.

Verification

Loaded the page headless: metadata resolves as intended, the tool still initialises and reports image dimensions, no console errors. format:check green.

🤖 Generated with Claude Code

killerwolf and others added 3 commits September 6, 2026 09:45
The page shipped a charset, a title reading "VisualImageTool – Demos" and
nothing else: no description, no canonical, no Open Graph tags. Search
engines had nothing to index it on, and every link to it — in a tweet, a
Slack message, a newsletter — rendered as a bare URL with no preview.

Adds a description, canonical, favicon links, and full Open Graph and
Twitter card tags, plus the 1200x630 card they point at. The card is
rendered from the demo itself, so it shows the actual tool rather than a
logo on a gradient.

Also aligns the on-page tagline with the meta description, so the page
and its preview say the same thing.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@killerwolf
killerwolf merged commit a51c43c into main Sep 6, 2026
2 checks passed
@killerwolf
killerwolf deleted the feat/demo-seo-and-social-card branch September 6, 2026 07:59
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