From bde0c0634812b0b7799d68186ab24f4b5115cd4a Mon Sep 17 00:00:00 2001 From: Dominik George Date: Sat, 7 May 2022 16:14:30 +0200 Subject: [PATCH] Update list.html Fix comparison for `summary` option in `list` fragment --- layouts/partials/fragments/list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/fragments/list.html b/layouts/partials/fragments/list.html index a5af22c5..5c950ccf 100644 --- a/layouts/partials/fragments/list.html +++ b/layouts/partials/fragments/list.html @@ -20,7 +20,7 @@ {{- end -}} {{- $content_page := first 1 (where ($self.page_scratch.Get "article_page_fragments") "Params.fragment" "in" "content") -}} {{- $page_id := index (last 1 (findRE "[^\\/]+" .File.Dir)) 0 -}} - {{- $display_summary := or (not (isset $self.Params "summary")) (eq $self.Params.summary true) -}} + {{- $display_summary := or (not (isset $self.Params "summary")) (eq $self.Params.summary "true") -}} {{- $slot_context := dict "page" $page "content_fragment" (index $content_page 0) -}} {{- partial "helpers/slot.html" (dict "root" $ "slot" "before-item" "data" $slot_context) -}} {{- if $self.Params.tiled -}}