Skip to content

fix(seo): move headTags to config root so site-wide JSON-LD actually renders#889

Open
nehagup wants to merge 1 commit into
mainfrom
geo/docs-headtags-root-fix
Open

fix(seo): move headTags to config root so site-wide JSON-LD actually renders#889
nehagup wants to merge 1 commit into
mainfrom
geo/docs-headtags-root-fix

Conversation

@nehagup

@nehagup nehagup commented Jul 11, 2026

Copy link
Copy Markdown
Member

The bug

headTags was nested under themeConfig, but Docusaurus only reads a root-level headTags field. So the entire array was silently ignored and never rendered: the Organization, SoftwareApplication, and WebSite JSON-LD (added in #819) plus the Google Fonts preconnect/stylesheet links.

Verified against production: live /docs/* pages contained none of these head tags (no Organization schema, no font preconnects).

The fix

Move the identical headTags array to the config root. No content change — the 3 JSON-LD blocks and font links are byte-for-byte the same, only relocated (diff is 143 moved / 143 removed).

Impact

Verify

  • node --check passes; prettier clean; deploy-preview CI will confirm the tags render in the built <head>.
  • Overlaps the open seo/audit-fixes config.js edits — sequence merges accordingly.

🤖 Generated with Claude Code

…renders

headTags was nested under `themeConfig`, but Docusaurus only reads a
root-level `headTags` field — so the entire array was silently ignored and
NEVER rendered: the Organization, SoftwareApplication, and WebSite JSON-LD
(added in #819) plus the Google Fonts preconnect/stylesheet links.

Verified against production: live /docs/* pages contained none of these head
tags. Moving the identical array to the config root makes Docusaurus emit
them. No content change — the 3 JSON-LD blocks and font links are unchanged,
only relocated.

This also unblocks #887 (Organization sameAs completion), which edits this
same block.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Neha Gupta <gneha21@yahoo.in>
Copilot AI review requested due to automatic review settings July 11, 2026 14:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a Docusaurus configuration issue where site-wide <head> tags were previously nested under themeConfig and therefore not rendered. It relocates the existing headTags array to the root config so JSON-LD schemas and font preconnect/stylesheet links are actually emitted across the docs site.

Changes:

  • Move the headTags array from themeConfig to the config root.
  • Restore rendering of site-wide JSON-LD (SoftwareApplication, Organization, WebSite) in the built <head>.
  • Restore Google Fonts preconnect + stylesheet links that were previously ignored.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants