Repository navigation
[Website] Make comparison pages eligible for Google article results - #11049
Merged
Merged
Conversation
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.
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.
Google's Article rich result accepts
Article,NewsArticleandBlogPosting. Comparison pages and the GraphQL Federation page declared onlyTechArticle, so the Rich Results Test found nothing but the breadcrumb on pages such as/comparison/mocha-vs-brighter.Changes
/comparisonlist and the GraphQL Federation page declare["TechArticle", "Article"], the same as the docs pages.app/platform-og, because route groups add a hash to the file convention URL.datePublishedcarries a time zone. BareYYYY-MM-DDdates become midnight UTC.max-image-preview:large, max-snippet:-1, max-video-preview:-1. Google Discover shows large images only withmax-image-preview:large, and Bing reads these values as directives. Preview deployments and noindex pages are unchanged.validate-structured-data.mjsfails when an article declares no type Google recognizes, or a date without a time zone.Verification
npm run build, thennpm run validate:structured-dataagainst the built site in the CI container: 295 indexable pages, 0 errors.npm run test:validator,tsc --noEmit, eslint and prettier pass./comparison,/platform/graphql-federation, a blog post, a tag archive and the support thank-you page.Not in this PR
FAQPagemarkup stays. Google no longer shows FAQ rich results (deprecated May 2026), but the markup does no harm.