{{ $small := "solo" }} {{ $big := "solo" }} {{ $img := "" }} {{ $thumb := "" }} {{- if .context.Resources.ByType "image" -}} {{- $img = index (.context.Resources.ByType "image") 0 -}} {{- $thumb = $img.Resize "1024x" }} {{ if .content }} {{- $thumb = $img.Resize "500x" }} {{ end }} {{ end }} {{- if or (.context.Resources.ByType "image") (.context.Summary) ($img) -}} {{ $small = "multiple_small" }} {{ $big = "multiple_big" }} {{ else }} {{ $small = "multiple_big"}} {{ end }}
{{ if and (ne $img "") (eq .pic true)}}
{{ if and (ne .type "list") (.context.Resources.ByType "image") }}{{ end }} {{ if ne .type "list" }}{{ end }} {{ if eq .type "article" }}{{ end }}
{{ end }}
{{ if .partial_before }} {{ partial .partial_before (dict "context" .context "pic" .pic) }} {{ end }} {{ .content }}