From 8312ffd4ee6e325c32895250afb926db8acaffff Mon Sep 17 00:00:00 2001 From: Gaurav Nelson <23069445+gaurav-nelson@users.noreply.github.com> Date: Thu, 2 Jul 2026 11:00:33 +1000 Subject: [PATCH] fix: add missing next and previous page buttons on the contribute pages --- layouts/contribute/single.html | 3 +++ layouts/partials/page-navigation.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/layouts/contribute/single.html b/layouts/contribute/single.html index 3333274b7..3b3d73a5a 100644 --- a/layouts/contribute/single.html +++ b/layouts/contribute/single.html @@ -13,6 +13,9 @@ {{ partial "toc.html" . }}
{{ .Content }} + + + {{ partial "page-navigation.html" . }}
diff --git a/layouts/partials/page-navigation.html b/layouts/partials/page-navigation.html index ce0257f7a..63b1ecdf8 100644 --- a/layouts/partials/page-navigation.html +++ b/layouts/partials/page-navigation.html @@ -3,7 +3,7 @@ {{ $nextPage := false }} {{ $prevPage := false }} -{{ if or (eq .Section "learn") (eq .Section "workshop") }} +{{ if in (slice "learn" "workshop" "contribute") .Section }} {{/* For learn/workshop sections, use the menu system to get the correct order */}} {{ $menuName := .Section }} {{ $allMenuItems := slice }}