From 7168f63e77a1ecfecc2c8d06fd88e522e7261d4a Mon Sep 17 00:00:00 2001 From: Leon Mika Date: Sun, 6 Jul 2025 09:54:20 +1000 Subject: [PATCH] Added before and after micro-hooks for post content --- layouts/shortcodes/postlist.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/layouts/shortcodes/postlist.html b/layouts/shortcodes/postlist.html index 804b850..7dc49d2 100644 --- a/layouts/shortcodes/postlist.html +++ b/layouts/shortcodes/postlist.html @@ -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 }}
{{ range $pgr }} {{ partial "_postlist/post-content.html" . }} {{ end }}
+ {{ if templates.Exists "partials/_postlist/post-content-after.html" }} + {{ partial "partials/_postlist/post-content-after.html" . }} + {{ end }} {{- else -}}