mirror of
https://github.com/lmika/postlist-for-micro.blog.git
synced 2025-08-03 08:16:09 +00:00
Fixed before and after templates to accept the page list
This commit is contained in:
parent
7168f63e77
commit
76675a7897
|
@ -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">
|
||||||
|
|
Loading…
Reference in a new issue