mirror of
https://github.com/lmika/postlist-for-micro.blog.git
synced 2025-08-03 08:16:09 +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 -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- if (eq (.Get "display") "content") -}}
|
{{- 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">
|
<div class="postlist postlist-display-content h-feed">
|
||||||
{{ range $pgr }}
|
{{ range $pgr }}
|
||||||
{{ partial "_postlist/post-content.html" . }}
|
{{ partial "_postlist/post-content.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
{{ if templates.Exists "partials/_postlist/post-content-after.html" }}
|
||||||
|
{{ partial "partials/_postlist/post-content-after.html" . }}
|
||||||
|
{{ end }}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
<ul class="postlist">
|
<ul class="postlist">
|
||||||
{{ range $pgr }}
|
{{ range $pgr }}
|
||||||
|
|
Loading…
Reference in a new issue