Is there a way of constructing a loop that would iterate over numbers instead of collections? An equivalent to:
for i := 1; i <= .Params.images; i++ {}
I have files inside /content/a/b/ which are named image_1.jpg, image_2.jpg, … image_9.jpg and I provide images: 9 parameter in the front matter of /content/a/b/index.md file to manually specify how many of those files are in the leaf bundle.
I’d like to use this parameter (which might be different for each leaf bundle from section a) in /themes/mytheme/layouts/index.html to iterate through all of these images for each page found in /content/a/, that I’m listing on the Home page.