Generate all gallery and photo pages from yaml datafiles
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
{% assign photos=site.data.gallery[include.gallery].photos | sort:'date' %}
|
||||
<div style="line-height:0; padding:4px 0 0 1px;">
|
||||
{% for p in site.pages %}
|
||||
{% if p.layout == 'gallery-photo' and p.gallery == include.gallery %}
|
||||
<a href="/{{ site.baseurl }}/{{ p.url }}" style="display: inline-block; margin: 3px; text-decoration: none;"><img alt="Photo: {{ p.title }}" height="48" src="{{ site.asset_prefix }}/gallery/{{ include.gallery }}/{{ p.name | remove:'.md' }}~96x96.jpg" title="{{ p.title }}" width="48" style="padding: 1px;" /></a>
|
||||
{% endif %}
|
||||
{% for photo in photos %}
|
||||
<a href="/{{ site.baseurl }}/{{ photo.url }}" style="display: inline-block; margin: 3px; text-decoration: none;"><img alt="Photo: {{ photo.title }}" height="96" src="{{ site.asset_prefix }}/gallery/{{ include.gallery }}/{{ photo.name | remove:'.md' }}~96x96.jpg" title="{{ photo.title }}" width="96" style="padding: 1px;" /></a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
Reference in New Issue
Block a user