{{ range .images }} {{ if .id }} {{- $image := partial "GetMedia" .id -}} {{- if $image -}} {{/* TODO: refactor */}} {{- $url := $image.url -}} {{- if site.Params.keycdn -}} {{- $url = $image.direct_url -}} {{- end -}} {{- $lightbox_sizes := "1280x2560" -}}
{{ partial "commons/image.html" (dict "image" .file "alt" .alt "mobile" "164" "tablet" "336" "desktop" "416" )}} {{ if .text }}
{{- partial "PrepareHTML" .text -}}
{{ end }}
{{- end -}} {{ end }} {{ end }}