{{ $type := .Get "type" | default "articles" }} {{ $show := .Get "show" | default "all" }} {{ $hlevel := .Get "hlevel" | default "h3"}} {{ $readMore := .Get "readmore" | default false }} {{ $hr := .Get "hr" | default false }} {{ $doNotList := .Get "filterOut" | default "" }} {{ if eq $show "all" }} {{ .Scratch.Set "pages" (union .Page.Pages .Page.Sections) }} {{ else if (eq $show "sections") }} {{ .Scratch.Set "pages" .Page.Sections }} {{ else if (eq $show "pages") }} {{ .Scratch.Set "pages" .Page.RegularPages }} {{ end }} {{ $pages := where (.Scratch.Get "pages") "Title" "not in" (split $doNotList ", ") }} {{ if eq $type "articles" }}
{{- if .Description }}{{- .Description | markdownify -}} {{ else }}{{- .Summary | markdownify -}} {{ end -}}
{{ if .Params.list_image }} {{ $img := .Params.list_image }} {{ if (fileExists ( print "/static" $img )) }} {{ with (imageConfig ( print "/static" $img )) }} {{ $imageWidth := div .Width 3 }}