[WEB-9189] Add TechArticle JSON-LD structured data to docs pages#37407
Open
Jackie-Robson wants to merge 1 commit into
Open
[WEB-9189] Add TechArticle JSON-LD structured data to docs pages#37407Jackie-Robson wants to merge 1 commit into
Jackie-Robson wants to merge 1 commit into
Conversation
Adds a new Hugo partial (layouts/partials/structured-data.html) that emits a TechArticle JSON-LD block on every leaf page. The block sets publisher and author to the canonical Organization node on datadoghq.com, and populates name, headline, description, url, inLanguage, dateModified, and wordCount from existing Hugo context — no frontmatter changes required. Resolves WEB-9189
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.
What does this PR do? What is the motivation?
Fixes WEB-9189
Adds a
TechArticleJSON-LD structured data block to every leaf page on docs.datadoghq.com. This gives search engines and AI inference systems a machine-readable signal connecting docs content to Datadog as its publisher.Changes:
layouts/partials/structured-data.html— emits aTechArticleJSON-LD block using existing Hugo frontmatter fields (title,description,lastmod, word count). No new frontmatter required.layouts/_default/baseof.html— includes the partial in<head>, gated on.IsPage && .Fileso it only fires on leaf pages, not section/list pages.The
publisherandauthorfields referencehttps://www.datadoghq.com/#organization, the canonical Organization node already defined on the marketing site.Merge instructions
Merge readiness:
Additional notes
Validate after deploy using https://validator.schema.org against a sample of docs pages.