feat(library): add FAQPage JSON-LD to the eight keyword-research spokes - #240
Open
jeremypenguin-max wants to merge 1 commit into
Open
feat(library): add FAQPage JSON-LD to the eight keyword-research spokes#240jeremypenguin-max wants to merge 1 commit into
jeremypenguin-max wants to merge 1 commit into
Conversation
Each spoke already renders a visible FAQ section, but only the pillar page emitted FAQPage markup. This adds it to the eight spokes, 27 questions total. The question/answer strings were extracted programmatically from each page's MDX (H3 heading + the paragraph beneath it) rather than retyped, with inline markdown resolved to the text a reader actually sees: backticks stripped from inline code, link syntax reduced to its anchor text. Every pair was then checked against the prerendered HTML: each ld+json block JSON.parsed out of the built page, then every question and answer string searched for verbatim in the tag-stripped visible text of that same page. 27/27 matched. No prose changes and no breadcrumb changes - LibrarySpokePage already emits BreadcrumbList for these routes. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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
Adds
FAQPageJSON-LD to the eight keyword-research library spokes — 27 questions total. No other changes.seed-from-conversationlong-tail-question-miningsearch-intent-mappingcluster-topical-hubsgsc-programmatic-discoveryopportunity-sizing-forecastingintent-beyond-googlepositioning-to-demandEach file gets the same three things, copying the shape already used on the pillar (
library/keyword-research/index.tsx): afaqsarray, afaqLdobject, and onedangerouslySetInnerHTMLscript. The component body is wrapped in a fragment so the script can sit beside<LibrarySpokePage>.Why
The FAQ content already exists and is already visible on every one of these pages — a
## … FAQH2 with###questions and their answers, authored in the MDX. Only the markup was missing. The pillar page has emittedFAQPagesince it shipped; the spokes never did.How it was verified
The rule that matters here is that FAQ markup must match what is actually rendered — markup Google cannot see on the page is a violation, so a mismatched block would be worse than no block at all. So none of these strings were retyped:
###heading, answer from the paragraph beneath it. Inline markdown was resolved to the text a reader actually sees — inline-code backticks stripped (`noindex`renders asnoindex), and link syntax reduced to its anchor text.vite build, everyapplication/ld+jsonblock was pulled out of each built page,JSON.parsed, and then every question and answer string was searched for verbatim inside the tag-stripped visible text of that same page.Result: 27/27 pairs matched verbatim, 8/8 pages. Every page carries exactly two ld+json blocks — the new
FAQPageand theBreadcrumbListthatLibrarySpokePagealready emitted — so there is no duplicate breadcrumb.Checks:
npm --prefix web run types:check— cleannpx vite build— all eight spoke URLs prerender, no errorsnpx prettier --checkon the eight touched files — cleanJSON.parses out of the built HTMLScope notes
LibrarySpokePagealready emitsBreadcrumbListfor these routes.🤖 Generated with Claude Code