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