Skip to content

feat(seo): add organization logo, article images, and stable author ids to JSON-LD - #106

Merged
nibzard merged 1 commit into
mainfrom
feat/jsonld-logo-image-person-id
Jul 31, 2026
Merged

feat(seo): add organization logo, article images, and stable author ids to JSON-LD#106
nibzard merged 1 commit into
mainfrom
feat/jsonld-logo-image-person-id

Conversation

@nibzard

@nibzard nibzard commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

What

Three scoped JSON-LD enrichments, no other schema changes:

  1. Organization logo: the global Organization entity in lib/structured-data.ts now carries logo: https://docs.steel.dev/images/logo.png. The asset is 376x280px, comfortably above Google's 112x112px minimum for the logo rich result.
  2. Article image: buildTechArticleSchema accepts an optional image (absolute URL). Integration pages pass their OG image absolutized with DOCS_URL (https://docs.steel.dev/og/<path>). Cookbook recipes are served by the same catch-all route and get per-page OG images from app/og/[...slug]/route.tsx, so RecipeJsonLd now emits image: https://docs.steel.dev/og/cookbook/<slug> too.
  3. Stable Person @id: new shared helper getAuthorPersonId(handle) returns https://docs.steel.dev/cookbook/authors/<handle>#person. Both the recipe author Persons (components/recipe-jsonld.tsx) and the ProfilePage Person (components/author-profile.tsx) use it, so Google can merge the recipe author with the richer profile entity (reconciliation happens on @id, not url).

Test plan

  • bun test tests/structured-data.test.ts: 6 pass, 0 fail. New assertions cover the Organization logo, TechArticle image present when provided and omitted when absent, and identical Person @id in both components' emitted JSON-LD.
  • bun test: 300 pass, 0 fail.
  • bun run check: clean.

@vercel

vercel Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview Jul 31, 2026 12:40pm

Request Review

@nibzard
nibzard merged commit 0049665 into main Jul 31, 2026
2 of 3 checks passed
@nibzard
nibzard deleted the feat/jsonld-logo-image-person-id branch July 31, 2026 12:49
This was referenced Aug 4, 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.

1 participant