{{ if .Params.showHero | default (.Site.Params.article.showHero | default false) }} {{- $images := .Resources.ByType "image" -}} {{- $featured := $images.GetMatch "*feature*" -}} {{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}} {{- with $featured -}} {{ with .Resize "600x" }}
{{ end }} {{- end -}} {{- end -}}