Add new albums and option to ignore albums in gallery overview

This commit is contained in:
2016-01-19 15:47:44 +00:00
parent a8e79c8c03
commit 613555a1e7
26 changed files with 341 additions and 23 deletions

View File

@@ -9,20 +9,22 @@ layout: default
</section>
<section>
{% loopdir path:"gallery" match:"*/index.html" sort:"-date" %}
<div style="display: inline-block; height: 274px; margin: 8px 10px 0 0; text-align: center; width: 200px;">
{% if item.ignore == null %}
<div style="display: inline-block; height: 274px; margin: 8px 10px 0 0; text-align: center; width: 200px;">
<a href="/{{ site.baseurl }}/{{ item.path|replace:'/index.html','/' }}" style="text-decoration:none;">
<img alt="{{ item.title }}" height="200" src="{{ site.asset_prefix }}/{{ item.path|replace:'/index.html','' }}/{{ item.highlight_photo }}~200x200.jpg" title="{{ item.title }}" width="200" style="border-radius:4px;" />
<span style="text-decoration:underline;">{{ item.title }}</span>
{% if item.date %}<br />
<img alt="{{ item.title }}" height="200" src="{{ site.asset_prefix }}/{{ item.path|replace:'/index.html','' }}/{{ item.highlight_photo }}~200x200.jpg" title="{{ item.title }}" width="200" style="border-radius:4px;" />
<span style="text-decoration:underline;">{{ item.title }}</span>
{% if item.date %}<br />
<small>
{% if item.date_end %}
{{ item.date|date:"%B %-d" }} &ndash; {{ item.date_end|date:"%-d" }}, {{ item.date|date:"%Y" }}
{% else %}
{{ item.date|date:"%B %-d, %Y" }}
{% endif %}
{% if item.date_end %}
{{ item.date|date:"%B %-d" }} &ndash; {{ item.date_end|date:"%-d" }}, {{ item.date|date:"%Y" }}
{% else %}
{{ item.date|date:"%B %-d, %Y" }}
{% endif %}
</small>
{% endif %}
{% endif %}
</a>
</div>
</div>
{% endif %}
{% endloopdir %}
</section>