I am unable to generate a string containing the comma separated permalinks of several image resources and I cannot figure out why the delimit
function does not work in this case:
{{- with .Resources.ByType "image" -}}
<g:additional_image_link>
{{- range first 4 (after 1 .) -}}
{{- $original := . -}}
{{- $thumb := ($original.Fill "1080x1080").Permalink -}}
{{- delimit (slice $thumb) "," }}
{{- end -}}
</g:additional_image_link>
{{- end }}
Desired output:
<g:additional_image_link>https://www.example.com/img/002_<hash>_q75_box_smart1.jpg,https://www.example.com/img/003_<hash>_q75_box_smart1.jpg</g:additional_image_link>
Hugo output:
<g:additional_image_link>https://www.example.com/img/002_<hash>_q75_box_smart1.jpghttps://www.example.com/img/003_<hash>_q75_box_smart1.jpg</g:additional_image_link>