{{ with . }} {{ $image := partial "GetMedia" . }} {{ with $image }} {{ end }} {{ end }}