feat(site): add prev/next series navigation to blog posts - #379
Merged
Conversation
Contributor
|
✓ Changelog fragment found — thanks! |
Adds a SeriesNav pager to the foot of every blog post so readers can walk the essays front-to-back. Neighbours are derived from the published-post ordering in data/blog (new seriesOrder/seriesNeighbors helpers), so the pager stays in sync with the index and RSS feed. "Next" advances toward newer posts; "Previous" goes to older ones. The oldest post shows only Next, the newest only Previous. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: xNet Test <test@xnet.dev>
crs48
force-pushed
the
claude/upbeat-taussig-f2def6
branch
from
July 4, 2026 22:28
ced7f13 to
aeb11f8
Compare
Contributor
|
Preview removed for PR #379. |
| * as a running series, so the natural way to read it is front-to-back — the | ||
| * reverse of the index's newest-first listing. | ||
| */ | ||
| export function seriesOrder(): BlogPost[] { |
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 a previous / next pager to the foot of every blog post so readers can walk the essays as a series — finishing one and hopping straight to the next.
Each post now ends with a
SeriesNavblock:How
data/blog.ts— two small helpers,seriesOrder()(published posts oldest-first) andseriesNeighbors(slug)(returns{ previous, next }). Neighbours derive from the samepublishedPosts()ordering the index and RSS feed use, so the pager never drifts out of sync, and drafts are excluded automatically.components/blog/SeriesNav.astro— two link cards styled to match the existing blog index cards (border-border,bg-surface, indigo accents, hover states). Renders nothing when there are no neighbours.<SeriesNav slug="…" />into all 9 post pages, right after</article>.Verification
Ran the site standalone (
pnpm install --ignore-workspace+astro dev, Node 22) and confirmed against the running server:a-great-pirate-age→ Next only → Data Should Work Like Soilthe-gentlest-furnace→ Prev Data Should Work Like Soil, Next The Desert That Feeds the Foresthand-on-the-tiller→ Previous only → The Tip of the Hook(site is not a publishable
packages/*library, so no changeset is required.)🤖 Generated with Claude Code