Store gallery photo names in datasets for easier iterating

This commit is contained in:
2016-01-24 20:45:03 +00:00
parent 9c9a498a32
commit 283317b3b9
93 changed files with 1249 additions and 83 deletions

View File

@@ -0,0 +1,9 @@
{% 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 %}