From 5b929a609a8074ba1d152425f076c0269a93fae0 Mon Sep 17 00:00:00 2001 From: Ronald Tse Date: Wed, 6 May 2026 12:45:28 +0800 Subject: [PATCH] Fix prev/next nav showing on section landing pages Section landing pages (parent: '/') are not sequential content, but prev/next treated all top-level pages as siblings. This caused /about/ to show Publishing Events and Calendar Spam as neighbors. Skip prev/next for pages with parent='/'. --- _layouts/toc-type.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_layouts/toc-type.html b/_layouts/toc-type.html index c2de0d9..3f061c2 100644 --- a/_layouts/toc-type.html +++ b/_layouts/toc-type.html @@ -73,7 +73,8 @@

{{ page.title {% endif %} - {% comment %}Prev/Next navigation{% endcomment %} + {% comment %}Prev/Next navigation — skip for top-level section landing pages{% endcomment %} + {% unless page.parent == "/" %} {% assign siblingPages = site.pages | where: "parent", page.parent | sort: "order" %} {% if siblingPages.size > 1 %} {% assign prevPage = nil %} @@ -107,6 +108,7 @@

{{ page.title {% endif %} {% endif %} + {% endunless %}