diff --git a/layouts/shortcodes/postlist.html b/layouts/shortcodes/postlist.html index 040402f..12ca8f5 100644 --- a/layouts/shortcodes/postlist.html +++ b/layouts/shortcodes/postlist.html @@ -3,7 +3,7 @@ {{- $parOrder := or (and .Params (.Get "order")) "" -}} {{- $parLimit := or (and .Params (.Get "limit")) "" -}} {{- $parDisplay := or (and .Params (.Get "display")) "" -}} -{{- $parSummaries := or (and .Params (.Get "summaries")) "if-available" -}} +{{- $parContentOptions := split (or (and .Params (.Get "content-options")) "") " " -}} {{- $pgr := where .Site.RegularPages "Section" "ne" "" -}} {{- $pgr = where $pgr "Section" "not in" (slice "replies") -}} @@ -34,6 +34,8 @@ {{- $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 }} @@ -46,7 +48,7 @@
{{ .Summary | safeHTML }}