Skip to content

[Website] Make comparison pages eligible for Google article results - #11049

Merged
PascalSenn merged 1 commit into
mainfrom
ps/website-structured-data
Nov 23, 2026
Merged

PascalSenn merged 1 commit into
mainfrom
ps/website-structured-data

Conversation

@PascalSenn

Copy link
Copy Markdown
Member

Google's Article rich result accepts Article, NewsArticle and BlogPosting. Comparison pages and the GraphQL Federation page declared only TechArticle, so the Rich Results Test found nothing but the breadcrumb on pages such as /comparison/mocha-vs-brighter.

Changes

  • Comparison pages, the /comparison list and the GraphQL Federation page declare ["TechArticle", "Article"], the same as the docs pages.
  • Article images on comparison and blog pages declare their 1200x630 size.
  • The GraphQL Federation article image is now its share card instead of the site logo. Google says logos should not be used as article images. The card is served from a stable URL under app/platform-og, because route groups add a hash to the file convention URL.
  • datePublished carries a time zone. Bare YYYY-MM-DD dates become midnight UTC.
  • Indexable pages emit max-image-preview:large, max-snippet:-1, max-video-preview:-1. Google Discover shows large images only with max-image-preview:large, and Bing reads these values as directives. Preview deployments and noindex pages are unchanged.
  • validate-structured-data.mjs fails when an article declares no type Google recognizes, or a date without a time zone.

Verification

  • npm run build, then npm run validate:structured-data against the built site in the CI container: 295 indexable pages, 0 errors.
  • npm run test:validator, tsc --noEmit, eslint and prettier pass.
  • Checked the rendered JSON-LD and robots tag on a comparison page, /comparison, /platform/graphql-federation, a blog post, a tag archive and the support thank-you page.

Not in this PR

  • Google recommends 16:9, 4:3 and 1:1 versions of each article image. Our share images exist only as 1200x630.
  • FAQPage markup stays. Google no longer shows FAQ rich results (deprecated May 2026), but the markup does no harm.

Google's Article rich result accepts Article, NewsArticle and BlogPosting, so
comparison pages and the GraphQL Federation page, which declared only
TechArticle, were not detected as articles. They now declare
["TechArticle", "Article"], matching the docs pages.

- Article images on comparison and blog pages declare their 1200x630 size.
- The GraphQL Federation article image is its share card instead of the site
  logo, served from a stable URL under app/platform-og.
- datePublished carries a time zone (bare dates become midnight UTC).
- Indexable pages allow large image previews, full snippets and full video
  previews (max-image-preview:large, max-snippet:-1, max-video-preview:-1).
- The structured data validator fails when an article declares no type that
  Google recognizes, or a date without a time zone.
@PascalSenn
PascalSenn merged commit 84747d7 into main Nov 23, 2026
22 checks passed
@PascalSenn
PascalSenn deleted the ps/website-structured-data branch November 23, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant