We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50d6991 commit b742947Copy full SHA for b742947
1 file changed
src/components/Layout/Page.tsx
@@ -52,6 +52,12 @@ export function Page({
52
cleanedPath,
53
routeTree
54
);
55
+ const getNavigationRoutes = () => {
56
+ if (section !== 'blog') return { nextRoute, prevRoute };
57
+ return { nextRoute: prevRoute, prevRoute: nextRoute }; // Swap for blog
58
+ };
59
+
60
+ const { nextRoute: finalNextRoute, prevRoute: finalPrevRoute } = getNavigationRoutes();
61
const title = meta.title || route?.title || '';
62
const version = meta.version;
63
const description = meta.description || route?.description || '';
@@ -89,8 +95,8 @@ export function Page({
89
95
{!isBlogIndex && (
90
96
<DocsPageFooter
91
97
route={route}
92
- nextRoute={nextRoute}
93
- prevRoute={prevRoute}
98
+ nextRoute={finalNextRoute}
99
+ prevRoute={finalPrevRoute}
94
100
/>
101
)}
102
</div>
0 commit comments