diff --git a/layouts/shortcodes/postlist.html b/layouts/shortcodes/postlist.html index 12ca8f5..afa9f53 100644 --- a/layouts/shortcodes/postlist.html +++ b/layouts/shortcodes/postlist.html @@ -3,7 +3,6 @@ {{- $parOrder := or (and .Params (.Get "order")) "" -}} {{- $parLimit := or (and .Params (.Get "limit")) "" -}} {{- $parDisplay := or (and .Params (.Get "display")) "" -}} -{{- $parContentOptions := split (or (and .Params (.Get "content-options")) "") " " -}} {{- $pgr := where .Site.RegularPages "Section" "ne" "" -}} {{- $pgr = where $pgr "Section" "not in" (slice "replies") -}} @@ -34,8 +33,6 @@ {{- $pgr = $pgr.Limit (int $parLimit) -}} {{- end -}} -{{- $showSummary := not (in $parContentOptions "no-summary") -}} - {{- if (eq $parDisplay "content") -}} {{ if templates.Exists "partials/_postlist/post-content-before.html" }} {{ partial "_postlist/post-content-before.html" $pgr }} @@ -48,7 +45,7 @@
{{ if .Title }}

{{ .Title }}

- {{ if and $showSummary .Params.custom_summary }} + {{ if .Params.custom_summary }}

{{ .Summary | safeHTML }}

@@ -74,7 +71,7 @@ {{ range $pgr }} {{- if (ne .LinkTitle "") -}}
  • {{ .LinkTitle }}
  • - {{- else if and $showSummary (ne .Summary "") -}} + {{- else if (ne .Summary "") -}}
  • {{ .Summary | safeHTML | truncate 70 }}
  • {{- else -}}
  • {{ .Content | safeHTML | truncate 70 }}
  • diff --git a/plugin.json b/plugin.json index e9dd31b..f88bf11 100644 --- a/plugin.json +++ b/plugin.json @@ -1,5 +1,5 @@ { - "version": "1.4.0", + "version": "1.3.1", "title": "Postlist", "description": "Shortcode for dynamically adding a list of posts", "includes": [