Skip to content

Case studies: article cards, JSON-LD, and an index once a study is published - #56

Merged
ndbroadbent merged 2 commits into
mainfrom
work/marketing-cases
Dec 4, 2026
Merged

ndbroadbent merged 2 commits into
mainfrom
work/marketing-cases

Conversation

@ndbroadbent

@ndbroadbent ndbroadbent commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Item 3 of the marketing brief, building on #40's case studies section.

What changed

  • Studies get the same SEO as other pages: a social card (/og/case-studies/<name>.png), Article and BreadcrumbList JSON-LD (published = studied), a sitemap entry, and a "Case studies" label linking back to the index. check:seo covers all of it.
  • /case-studies/ index (src/pages/case-studies/[...index].astro) lists studies newest first. It's built only when at least one study is published, so production ships no empty index while Bootstrap is still draft: true. The dev server builds drafts, so the index and the study show there with a draft label.
  • src/lib/case-studies.ts holds the collection query (drafts only in dev), shared by the index, the study pages and the card list.
  • content.config.ts: z.string().url() becomes z.url(), which clears Zod's deprecation warning (the compare collection already uses z.url()).
  • docs/README.md describes the index rule.

The study text is #40's, unchanged: replay figures stay labelled as estimates, and cigen replay is described as not released.

Checks


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@ndbroadbent
ndbroadbent merged commit 3474ed9 into main Dec 4, 2026
9 checks passed
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.

1 participant