Skip to content

Instantly share code, notes, and snippets.

@schpet

schpet/gallery.html

Created May 6, 2013
Embed
What would you like to do?
ghetto gallery generator for jekyll - put images in directories inside _galleries - add gallery.html to layouts
<!-- access galleries globally -->
<ul>
{% for gallery in site.galleries %}
<li>
<a href="{{ gallery.url }}">
{{ gallery.title }}
</a>
{% for image in gallery.images %}
<img src="{{ gallery.slug }}/200/{{ image }}" data-fullsize="{{ gallery.slug }}/1000/{{ image }}">
{% endfor %}
</li>
{% endfor %}
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment