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