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 -}}