{{ if .image.id }} {{ $index := .index }} {{ $sizes := .sizes }} {{ $lazy := default true .lazy }} {{ $is_carousel := .is_carousel }} {{ $is_lightbox := false }} {{ $image := partial "GetMedia" .image.id }} {{ $image_class := printf "image-%s" (partial "GetImageDirection" .image) }} {{ if not site.Params.image_sizes.design_system.lightbox.disabled }} {{ $is_lightbox = true }} {{ end }} {{ if $image }} {{ with .image}} {{ end }} {{ end }} {{ end }}