{{ range .images }} {{ if .id }} {{- $image := partial "GetMedia" .id -}} {{- if $image -}}
{{ if not site.Params.image_sizes.design_system.lightbox.disabled }} {{ end }} {{ partial "commons/image.html" (dict "image" .file "alt" .alt "sizes" site.Params.image_sizes.blocks.gallery.grid )}} {{ if not site.Params.image_sizes.design_system.lightbox.disabled }} {{ end }} {{ if .text }}
{{- partial "PrepareHTML" .text -}}
{{ end }}
{{- end -}} {{ end }} {{ end }}