Repository navigation
Cross-link the case studies beyond the previous/next pager - #227
Merged
Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
The only internal links between studies were the sequential pager, so the internal link graph was a single chain: Argus only ever pointed at Linky and CropCare regardless of what a reader had just finished reading. Each study now carries two deliberate cross-links with a sentence explaining the connection, rendered as a "Related work" block above the pager. trademind -> argus, linky botpress -> fundica, linky fundica -> botpress, cropcare argus -> linky, trademind cropcare -> argus, botpress linky -> argus, botpress `getRelatedStudies` resolves slugs through `getCaseStudyBySlug` and drops anything unresolved, so a renamed slug loses one link instead of throwing at build time.
carsonSgit
force-pushed
the
feat/case-study-cross-links
branch
from
November 7, 2026 19:49
58551cd to
1810d08
Compare
This branch was successfully deployed
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.
The only internal links between case studies were the previous/next pager — a single chain, where Argus pointed at Linky and CropCare no matter what the reader had just finished.
Each study now carries two deliberate cross-links, with a sentence explaining why they belong together, rendered as a Related work block above the pager.
Notes
getRelatedStudies(slug)inapp/data/caseStudies.tsresolves each slug throughgetCaseStudyBySlugand drops unresolved entries — a renamed slug loses one link instead of throwing at build time.--rule,--hover-bg, 12px radius) and collapses to one column under 640px.Verified
npx tsc --noEmitclean,npx biome ci .clean (43 files)npm run buildexit 0; all six exported pages contain exactly 2 related links