I am trying to build a simple photo portfolio site which posts all images in a directory. I don’t want to have to rewrite the html every time I add new photos. I’m very new to web development though so I don’t really know what I’m doing, but I have a little bit of coding experience.
My primary challenge here seems to be that I can’t collect the file listing in a directory, so I can’t use ajax jquery code to achieve this. I can’t use php for a static site here either, but php could apparently be used at build time, maybe to get a file directory listing, but I can’t seem to understand how to achieve that.
It seems there are a lot of other potential static site building solutions here but I really just want the most simple solution possible.
What is the easiest way to get a list of files in a directory folder on a netlify site?