I have an /img directory on my Github Pages website. There are about 50 images in /img and sub folders that I want to display in a grid on a page. I have no interest in typing out the following 50 times for each image...
<a href="...">
<img alt=".." src="img/...">
</a>
... especially since I will be adding and removing images over time.
How do dynamically create the HTML code with JavaScript? I obviously can't use PHP since this is Github Pages.
I have already tried AJAX and requirejs but couldn't get anything to work.