          {{- $img = printf `%s/%s` (strings.TrimSuffix "/" $.Site.Params.imageHostURL) (strings.TrimPrefix "/" $img) -}}
                {{- end -}}
            {{- end -}}
        {{- end -}}

        <!-- Make URLs absolute -->
        {{- $img = $img | absURL -}}

        {{- $translated = union $translated (slice $img) -}}
    {{- end -}}
    {{- $imgs = $translated -}}
{{- end -}}

{{- return $imgs -}}
