reusable gallery includes; primitive, dynamic loopdir path support

This commit is contained in:
Danny Berger
2014-03-31 01:53:09 -06:00
parent 5e9da5addc
commit 52435c2e0a
5 changed files with 68 additions and 5 deletions

View File

@@ -0,0 +1,5 @@
<div class="list-gallery">
{% capture path %}gallery/{{ include.gallery }}{% endcapture %}
{% loopdir path:path match:"*.md" sort:"ordering" %}<a href="/{{ item.fullname }}.html"><img alt="Photo: {{ item.title }}" height="200" src="{{ site.asset_prefix }}/{{ item.fullname }}~200x200.jpg" title="{{ item.title }}" width="200" /></a>{% endloopdir %}
}
</div>