I’m converting to Hugo’s internal templates for Twitter and OpenGraph, from a hand-rolled solution I made a while back. This is mainly so I can assign multiple images to a page, use them in Twitter cards and use them in a photo gallery.
In the process, I’ve converted all the frontmatter image: https://…
to an array
image:
- https//…
But I’m really rusty and can’t find the syntax for converting .Params.image
to using an array. Something like .Params.image[0]
??
Any help gratefully received!