Related posts
Three suggestions for the end of an article, ordered by relatedness.
Live preview
Source
This exact file renders the preview above.
components/blocks/sections/blog/related-posts.tsx
components/ui/badge.tsx
Demo source — adapt to your project. Foundry is not published as a package.
Usage
Three items, because a reader who has finished an article will choose from three and abandon a list of ten. Ordered by relatedness rather than recency, which is the whole point of the block.
- Never show the article the reader just finished.
- Three items. This block competes with leaving, not with the rest of the site.
Variants and states
Every entry below is a genuine difference in behaviour or layout, and every one of them is visible in the preview above.
- Three cards
- Category badges
- All-articles link
Accessibility
- Whole-card links
- Each suggestion is one focus stop.
- Heading level
- Card titles are h3 under the section h2.
Foundry implements published ARIA patterns and is tested against them. No WCAG certification is claimed — see the accessibility documentation for what is and is not covered.
Related
All sectionsArticle card grid
Three columns of equal cards with reserved media areas.
starter3 variantsDocumentation footer
Previous/next cards with rel hints, plus edit and report links.
starter3 variantsContent starter
A magazine with six article routes, four category indexes and four author pages — twenty-one routes from six definitions.
intermediate4 variants