Loop an array from Front Matter

Hi all,

Assuming I have below front matter (toml), how do I loop through values in “img” attribute? Thank you.

+++
title = "ABC"
img = [“image1.jpg”, “image2.jpg”]
+++

Content

{{ range .Params.img }}
    {{ . }}
{{ end }}

Thank you. That helps!