From 7a843af74ac3b7adac44743087a2b24faedb46f1 Mon Sep 17 00:00:00 2001 From: Leon Mika Date: Sun, 6 Jul 2025 10:20:35 +1000 Subject: [PATCH] Removed embedded post content template --- layouts/partials/_postlist/post-content.html | 18 ------------- layouts/shortcodes/postlist.html | 27 +++++++++++++++++--- 2 files changed, 24 insertions(+), 21 deletions(-) delete mode 100644 layouts/partials/_postlist/post-content.html diff --git a/layouts/partials/_postlist/post-content.html b/layouts/partials/_postlist/post-content.html deleted file mode 100644 index e7a702e..0000000 --- a/layouts/partials/_postlist/post-content.html +++ /dev/null @@ -1,18 +0,0 @@ -
-{{ if .Title }} -

{{ .Title }}

- {{ if .Params.custom_summary }} -
-

{{ .Summary | safeHTML }}

-

- {{ else }} -
- {{ .Content }} -
- {{ end }} -{{ else }} -
- {{ .Content }} -
-{{ end }} -
\ No newline at end of file diff --git a/layouts/shortcodes/postlist.html b/layouts/shortcodes/postlist.html index 46c69f7..6b8db5a 100644 --- a/layouts/shortcodes/postlist.html +++ b/layouts/shortcodes/postlist.html @@ -24,15 +24,36 @@ {{- if (eq (.Get "display") "content") -}} {{ if templates.Exists "partials/_postlist/post-content-before.html" }} - {{ partial "partials/_postlist/post-content-before.html" $pgr }} + {{ partial "_postlist/post-content-before.html" $pgr }} {{ end }}
{{ range $pgr }} - {{ partial "_postlist/post-content.html" . }} + {{ if templates.Exists "partials/_postlist/post-content.html" }} + {{ partial "_postlist/post-content.html" $pgr }} + {{ else }} +
+ {{ if .Title }} +

{{ .Title }}

+ {{ if .Params.custom_summary }} +
+

{{ .Summary | safeHTML }}

+

+ {{ else }} +
+ {{ .Content }} +
+ {{ end }} + {{ else }} +
+ {{ .Content }} +
+ {{ end }} +
+ {{ end }} {{ end }}
{{ if templates.Exists "partials/_postlist/post-content-after.html" }} - {{ partial "partials/_postlist/post-content-after.html" $pgr }} + {{ partial "_postlist/post-content-after.html" $pgr }} {{ end }} {{- else -}}