While I am looking the doc. I saw the following document structure,
.
├── _config.yml
├── _drafts
| ├── begin-with-the-crazy-ideas.textile
| └── on-simplicit
Assuming you have your gallery images in a structure like
-img
-gallery
-image1.png
-image2.png
etc.
you can access them in a collection or page like this:
{% for image in site.static_files %}
{% if image.path contains 'img/gallery' %}
{{image.path}} - {{image.modified_time}}
{% endif %}
{% endfor %}
This goes through all static files and check for a certain path (img/gallery
in this example).
Than you can access the static file metadata for that file. (I named it 'image' in this example but you can name it whatever you want after the for
keyword).
I think it doesn't make too much sense to put something like this in a blog post but rather in a page
or a collection
.