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