{{- $has_text := false -}} {{- range .images }} {{- if .text }} {{- $has_text = true -}} {{ end -}} {{ end -}}
{{- . | safeHTML -}}