{{ $featured := (.Resources.ByType "image").GetMatch "*featured*" }} {{ with $featured }} {{ $image := .Fill "1600x400" }}