To loop over and display a folder of images in Jekyll (makes galleries really easy):
{% for image in site.static_files %} {% if image.path contains 'path/to/image/folder/' %} <a href="{{ site.baseurl }}{{ image.path }}" target="_blank"> <img src="{{ site.baseurl }}{{ image.path }}" alt="" class="img-thumbnail" /> </a> {% endif %} {% endfor %}