You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs: blog posts emit two BlogPosting JSON-LD entries #78589
starlight-blog already emits a BlogPosting (with breadcrumbs) for each post. CustomHead.astro emits a second one, so each post has two BlogPosting entities. Search engines may report the duplicate as an error or pick the wrong one.
How to reproduce
View the source of any blog post and search for "BlogPosting". It appears in two JSON-LD scripts.
Plan
Stop emitting our own BlogPosting in CustomHead.astro.
Add what the plugin entry lacks: the site publisher, and a dateModified that falls back to datePublished.
Add a test helper that collects entities across all JSON-LD scripts on a page. Update schema-jsonld.spec.ts to require exactly one BlogPosting per post.
Note the behaviour in docs/README.md ("Structured data").
Done when
Each blog post has exactly one BlogPosting, and it has a publisher and dateModified.
A working version of this fix is on my fork, in branch angelica/docs-playwright-fixes (all changes vs main). With all 10 commits applied, the full docs Playwright suite passes (239/239). Feel free to reuse the commit linked above, or to implement the plan differently.
Activity