{{ $is_carousel := .is_carousel }} {{ $index := .index }} {{ $role := .role }} {{ with .params }} {{ if .file }} {{- $image := partial "GetMedia" .file -}} {{- if $image -}} {{- end -}} {{ end }} {{ end }}