I want to range all image from a post images = ["1.png", "2.png", "3.png"] front-matter with resources.Get .
I did it for one image which looks like {{ $image:= resources.Get .Params.image }}, But I want all images. How to do it?
I want to range all image from a post images = ["1.png", "2.png", "3.png"] front-matter with resources.Get .
I did it for one image which looks like {{ $image:= resources.Get .Params.image }}, But I want all images. How to do it?
One way of going about it would be to range through the .Params.images array and then within its context use something like {{ $image:= resources.Get . }}
Thank You, It works 
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.