Skip to content

Commit f823b31

Browse files
committed
Add comment explaining blog route swap
Add one-line comment explaining why next/prev routes are swapped for blog posts (they're ordered newest to oldest).
1 parent ba6729f commit f823b31

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/Layout/Page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ export function Page({
9696
{!isBlogIndex && (
9797
<DocsPageFooter
9898
route={route}
99+
// Blog posts are ordered newest to oldest, so swap routes to match chronological navigation
99100
nextRoute={section === 'blog' ? prevRoute : nextRoute}
100101
prevRoute={section === 'blog' ? nextRoute : prevRoute}
101102
/>

0 commit comments

Comments
 (0)