Skip to content

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

Merged
nehagup merged 1 commit into
mainfrom
geo/docs-headtags-root-fix
Jul 13, 2026
Merged

fix(seo): move headTags to config root so site-wide JSON-LD actually renders#889
nehagup merged 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

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.

…renders

headTags was nested under `themeConfig`, but Docusaurus only reads a
root-level `headTags` field — so the array was silently ignored and NEVER
rendered: the Organization, SoftwareApplication, and WebSite JSON-LD 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 — relocated only; includes the 13-entry Organization
sameAs merged via #887 (which stayed non-rendering until this move).

Rebased onto main after #887/#888 merged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Neha Gupta <gneha21@yahoo.in>
@nehagup nehagup force-pushed the geo/docs-headtags-root-fix branch from 497db60 to e9e24a6 Compare July 13, 2026 11:11
@nehagup nehagup merged commit 59d0cd8 into main Jul 13, 2026
7 checks passed
@nehagup nehagup deleted the geo/docs-headtags-root-fix branch July 13, 2026 11:30
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.

3 participants