Skip to content

feat(seo): distinct OG cards per note/case study + article meta - #52

Closed
adamshatzkamer wants to merge 1 commit into
sdonche:mainfrom
adamshatzkamer:feat/richer-og-cards-46
Closed

adamshatzkamer wants to merge 1 commit into
sdonche:mainfrom
adamshatzkamer:feat/richer-og-cards-46

Conversation

@adamshatzkamer

Copy link
Copy Markdown

Closes #46

Every note and case study currently shares the same text-only OG card, so link previews on LinkedIn all look alike. This PR gives each page a card with its own visual and adds the article metadata that makes them richer.

Cards (all 13 note + case-study pages):

  • Right-hand visual panel shows the page's own diagram/screenshot — e.g. the RabbitMQ form for ignition-amqp, the chocolate plant P&ID for plant-hmi, the scheduling Gantt for mqtt-sparkplug-b — with a small FIG/PREVIEW label
  • Reading-time line (N MIN READ) below the headline, computed from each page's JSON-LD wordCount
  • NOTE / CASE STUDY eyebrow label kept and made consistent
  • Homepage plus notes/case-studies/publications index cards are unchanged

Meta:

  • article:published_time, article:author, article:tag added to all 13 article pages, mirroring the datePublished/keywords already present in each page's JSON-LD

Verification:

  • python3 tools/generate-og-card.py regenerated the 13 article cards; generator stays deterministic on the same Pillow version
  • python3 scripts/check-seo.py → 18 pages OK
  • python3 scripts/check-skills.py → OK
  • Card output vision-QA'd at 1200×630; no clipped/overlapping elements

The generator now accepts --articles slug1 slug2 so a single card can be regenerated without touching the rest.

Each note and case study card now shows the page's own diagram or
screenshot in a right-hand visual panel with a FIG/PREVIEW label, the
eyebrow keeps NOTE / CASE STUDY, and a reading-time line (N MIN READ)
is added under the headline. Index and homepage cards are unchanged.

Also adds article:published_time, article:author and article:tag
meta to all 13 note/case-study pages, mirroring the JSON-LD dates and
keywords already on those pages.

Closes sdonche#46

sdonche commented Oct 14, 2026

Copy link
Copy Markdown
Owner

Thanks, but this is a personal site and I'm not accepting unsolicited or automated pull requests. Closing.


Generated by Claude Code

@sdonche sdonche closed this Oct 14, 2026
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.

Richer social preview images for notes and case studies

2 participants