From 519c427dc81d178b1018a7ee32c4543e354a7401 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Wed, 12 Nov 2025 08:25:50 +0900 Subject: modified recordings/single.html --- layouts/recordings/single.html | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/layouts/recordings/single.html b/layouts/recordings/single.html index 96ddd42..1cd0e51 100644 --- a/layouts/recordings/single.html +++ b/layouts/recordings/single.html @@ -44,12 +44,25 @@ {{ .Content }} + {{ $pages := .CurrentSection.Pages.ByDate.Reverse }} + {{ $.Scratch.Set "older" nil }} + {{ $.Scratch.Set "newer" nil }} + {{ range $i, $p := $pages }} + {{ if eq $p.File.Path $.File.Path }} + {{ if lt (add $i 1) (len $pages) }} + {{ $.Scratch.Set "older" (index $pages (add $i 1)) }} + {{ end }} + {{ if gt $i 0 }} + {{ $.Scratch.Set "newer" (index $pages (sub $i 1)) }} + {{ end }} + {{ end }} + {{ end }}