reusable gallery includes; primitive, dynamic loopdir path support
This commit is contained in:
5
_includes/gallery_list.html
Normal file
5
_includes/gallery_list.html
Normal 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>
|
||||
Reference in New Issue
Block a user