From 76675a789747b58153acb51cf60f268034b8546c Mon Sep 17 00:00:00 2001 From: Leon Mika Date: Sun, 6 Jul 2025 09:59:36 +1000 Subject: [PATCH] Fixed before and after templates to accept the page list --- layouts/shortcodes/postlist.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/shortcodes/postlist.html b/layouts/shortcodes/postlist.html index 7dc49d2..46c69f7 100644 --- a/layouts/shortcodes/postlist.html +++ b/layouts/shortcodes/postlist.html @@ -24,7 +24,7 @@ {{- if (eq (.Get "display") "content") -}} {{ if templates.Exists "partials/_postlist/post-content-before.html" }} - {{ partial "partials/_postlist/post-content-before.html" . }} + {{ partial "partials/_postlist/post-content-before.html" $pgr }} {{ end }}
{{ range $pgr }} @@ -32,8 +32,8 @@ {{ end }}
{{ if templates.Exists "partials/_postlist/post-content-after.html" }} - {{ partial "partials/_postlist/post-content-after.html" . }} - {{ end }} + {{ partial "partials/_postlist/post-content-after.html" $pgr }} + {{ end }} {{- else -}}