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

@@ -7,6 +7,4 @@ title : London & Iceland Trip
My trip to London and Iceland…
</p>
<div class="list-gallery">
{% loopdir path:gallery/2014-london-iceland-trip match:*.md sort:ordering %}<a href="/gallery/2014-london-iceland-trip/{{ item.name }}.html"><img alt="Photo: {{ item.title }}" height="200" src="{{ site.asset_prefix }}/gallery/2014-london-iceland-trip/{{ item.name }}~200x200.jpg" title="{{ item.title }}" width="200" /></a>{% endloopdir %}
</div>
{% include gallery_list.html gallery='2014-london-iceland-trip' %}

View File

@@ -0,0 +1,6 @@
---
layout: post
title: London &amp; Iceland Trip
---
{% include gallery_map.html gallery='2014-london-iceland-trip' latitude=59.1116508 longitude=-10.4266682 zoom=4 %}