Generate all gallery and photo pages from yaml datafiles

This commit is contained in:
2016-01-26 15:02:42 +00:00
parent 3a0d77208f
commit d020903123
1367 changed files with 14792 additions and 32293 deletions

View File

@@ -1,10 +0,0 @@
<div class="list-gallery">
{% include gallery-photos.html %}
{% for photo in photos %}
<span itemprop="image" itemscope itemtype="http://schema.org/Photograph">
<a href="/{{ site.baseurl }}/{{ photo.url }}" itemprop="url">
<img alt="Photo: {{ photo.title }}" height="200" src="{{ site.asset_prefix }}/gallery/{{ gallery }}/{{ photo.name | remove:'.md' }}~200x200.jpg" title="{{ photo.title }}" width="200" />
</a>
</span>
{% endfor %}
</div>

View File

@@ -1,9 +0,0 @@
{% capture baseurl %}{{ sitebaseurl }}/gallery/{{ include.gallery }}{% endcapture %}
{% assign baseurl=baseurl | replace_first:'./','/' %}
{% assign names=site.data.gallery[include.gallery] %}
{% assign photos=site.array %}
{% for name in names %}
{% capture url %}{{ baseurl }}/{{ name }}.html{% endcapture %}
{% assign_page photo=url %}
{% assign photos=photos | push:photo %}
{% endfor %}

View File

@@ -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>