{{ $metas := dict "when" .context.Params.when "price" .context.Params.price "contact" .context.Params.contact "covid" .context.Params.covid }} {{ if eq .type "list" }} {{ $metas = dict "when" .context.Params.when "price" .context.Params.price }} {{ end }} {{ $small := "solo" }} {{ $big := "solo" }} {{ $img := "" }} {{ $thumb := "" }} {{ $placeholder := site.Params.placeholder }} {{- if or (.context.Resources.ByType "image") (.context.Summary) -}} {{ $small = "multiple_small" }} {{ $big = "multiple_big" }} {{ else }} {{ $small = "multiple_big"}} {{ end }} {{- if .context.Resources.ByType "image" -}} {{- $img = index (.context.Resources.ByType "image") 0 -}} {{ if ne .context.Content "" }} {{- $thumb = $img.Resize "2048x" }} {{ else if .type "list" }} {{- $thumb = $img.Resize "500x" }} {{ end }} {{ end }} {{ partial "snippets/article_metadata" $metas }}