{{ $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 }}