feat(seo): expand structured data with shared jsonld helpers (#126) - #140
Open
Escelit wants to merge 1 commit into
Open
feat(seo): expand structured data with shared jsonld helpers (#126)#140Escelit wants to merge 1 commit into
Escelit wants to merge 1 commit into
Conversation
|
@Escelit Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
@Escelit is attempting to deploy a commit to the truthixify's projects Team on Vercel. A member of the Team first needs to authorize it. |
5 tasks
Contributor
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.
Summary
Generalizes the ad-hoc Article JSON-LD in
CaseStudies.tsxinto a typedsrc/utils/jsonld.tshelper module and closes the structured-data coverage gaps across the site.Changes
src/utils/jsonld.ts: typed helpersorganization(),article(),faqPage(),howTo(),breadcrumbList()(plus exportedSITE_URL).CaseStudies.tsx: refactored to consumearticle()+ now emits aBreadcrumbListon/case-studies/:slug.Blog.tsx: emits anArticleper blog post (from MDX frontmatter) +BreadcrumbListon both the list and/blog/:slug.Faq.tsx: emits aFAQPagebuilt fromsrc/data/faq.json.Grants.tsx: emits aHowTofor the grant application steps derived from wave.BlogAuthor.tsx+/blog/author/:idroute: emits aBreadcrumbList(closes the third nested-route gap).scripts/validate-jsonld.mjs: rebuilds every emitted blob from real data and validates it against a local schema.org structural validator. Wired into CI viapnpm validate:jsonld.Acceptance
Articleblock/faqemits a validFAQPageblock with every Q&ABreadcrumbList(/case-studies/:slug,/blog/:slug,/blog/author/:id)Test plan
pnpm validate:jsonld→ all 8 blobs valid, exits 0pnpm build→ greenpnpm format:check→ cleanCloses #126