I have a collection of images that I have in content/images
under themes I have layouts/index.html. I have a matching _index.md in content/ that I do not think is relevant. (?)
In my index.html I have the code:
{{ range .Resources.Match "images/*.jpg" }}
{{ . }} <br/>
{{ end }}
I thought this should loop over all the images in the images directory. At the very least I would see the </br> in the page source. But I do not.
I am barking up the wrong tree some where. What am I doing wrong?
Ok. But why? Is there a reason for the difference in the bundles, and is there a reason to swing so much over _index V. index? I am not sure I can see why leaf and the branch bundle need to be so different. I definitely do not see why the index file needs to be different.
I see the children applies to the directory. That makes sense.
I am a bit disturbed having to dump all my files into content/ (rather than tidy them away to content/images) to have them available to the home page.
I am new. Am I doing it wrong?
My home page wants to be heavy with images, it is a artists boasting site.