{% assign gallery=site.data.gallery[include.gallery] %} {% assign photos=gallery.photos | sort:'date' %}
{% unless include.no-link %} [ gallery ]
{% endunless %} {% for photo in photos %} {% if false != gallery.slideshow %} {% capture url %}{{ include.gallery }}/slideshow.html#{{ photo.name }}{% endcapture %} {% else %} {% capture url %}{{ photo.url }}{% endcapture %} {% endif %} Photo: {{ photo.title }} {% endfor %}