Issues with delimit function - returning numbers?

I have a list of authors in my frontmatter;
authors: ["author1", "author2"]

I want to print this in a layout with commas delimiting the list, and perhaps an extra argument for the last list entry, using the delimit function in Hugo:
{{range .Params.authors}}{{delimit . ","}}{{end}}

For the above front matter it returns in the rendered layout;
97,117,116,104,111,114,4997,117,116,104,111,114,50

Why is this happening, what is wrong with my understanding of the delimit function?

no need to use range, .Params.authors already array/slice.

{{ delimit .Params.authors "," }}
2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.