Fixed before and after templates to accept the page list

This commit is contained in:
Leon Mika 2025-07-06 09:59:36 +10:00
parent 7168f63e77
commit 76675a7897

View file

@ -24,7 +24,7 @@
{{- if (eq (.Get "display") "content") -}} {{- if (eq (.Get "display") "content") -}}
{{ if templates.Exists "partials/_postlist/post-content-before.html" }} {{ 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 }} {{ end }}
<div class="postlist postlist-display-content h-feed"> <div class="postlist postlist-display-content h-feed">
{{ range $pgr }} {{ range $pgr }}
@ -32,7 +32,7 @@
{{ end }} {{ end }}
</div> </div>
{{ if templates.Exists "partials/_postlist/post-content-after.html" }} {{ if templates.Exists "partials/_postlist/post-content-after.html" }}
{{ partial "partials/_postlist/post-content-after.html" . }} {{ partial "partials/_postlist/post-content-after.html" $pgr }}
{{ end }} {{ end }}
{{- else -}} {{- else -}}
<ul class="postlist"> <ul class="postlist">