{{- with .Params.image }} {{ $image := $.Resources.GetMatch . }} {{ with $image }} {{ $thumb := .Resize "400x" }} {{ end }} {{ end }}