This commit is contained in:
2019-12-03 19:09:35 +01:00
parent c31a4942c0
commit 7ca69e1549
20 changed files with 472 additions and 141 deletions
@@ -13,13 +13,22 @@
{% set options = { items: {'@taxonomy': {'category': tax} } } %}
{% set my_collection = page.collection(options) %}
{% for i in my_collection %}
{% if i.media.images|first %}
<li class="{{i.parent.folder}}">
<a id="{{i.parent.folder}}" href="{{i.url}}">{{i.title}}</a>
{% set image = page.media.images|first %}
</li>
{% endif %}
{% if i.media.images|first %}
<li class="{{i.parent.folder}}">
<a id="{{i.parent.folder}}" href="{{i.url}}">{{i.title}}
{% set images = i.media.images|slice(0,1) %}
{% for image in images %}
{% set services_image = image.derivatives(320,1600,300).sizes('(max-width:26em) 100vw, 50vw').html(i.title) %}
<div class="img">
{{services_image}}
</div>
{% endfor %}
</a> /
</li>
{% endif %}
{% endfor %}
</ul>
{% endfor %}