mirror of
https://github.com/lmika/postlist-for-micro.blog.git
synced 2025-08-02 07:46:08 +00:00
Added before and after micro-hooks for post content
This commit is contained in:
parent
0c1054e20f
commit
7168f63e77
|
@ -23,11 +23,17 @@
|
|||
{{- end -}}
|
||||
|
||||
{{- if (eq (.Get "display") "content") -}}
|
||||
{{ if templates.Exists "partials/_postlist/post-content-before.html" }}
|
||||
{{ partial "partials/_postlist/post-content-before.html" . }}
|
||||
{{ end }}
|
||||
<div class="postlist postlist-display-content h-feed">
|
||||
{{ range $pgr }}
|
||||
{{ partial "_postlist/post-content.html" . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ if templates.Exists "partials/_postlist/post-content-after.html" }}
|
||||
{{ partial "partials/_postlist/post-content-after.html" . }}
|
||||
{{ end }}
|
||||
{{- else -}}
|
||||
<ul class="postlist">
|
||||
{{ range $pgr }}
|
||||
|
|
Loading…
Reference in a new issue