{{ range (readDir “./static/{{.Get 0}}”) }}
do stuff
{{ end }}
It doesn’t actually work but I think you get the idea of what I’m attempting. I’m totally unfamiliar with Go and Go templates, so I’d appreciate any suggestions on how to do this.
The shortcode looks like {{% gallery folderName rowHeight %}}
So basically I put a bunch of images in a folder, I supply the folder name in the shortcode and the template constructs the image gallery regardless of how many images there are.