Dear coders,
i am working on a portfolio site, which has both .gif and .jpg-files as title images to show on the portfolio overview. As you can see, my loop does not provide a possibility to use .gif-files, only .jpgs.
Is there a good workaround to fix this?
{% for child in collection %}
<div class="col-md-4 projekt">
<a href="{{ child.url }}" data-title="{{ child.title }}">
<img src="{{ child.media['title.jpg'].url }}">
</a>
</div>
{% endfor %}
Thank you guys!!! btw: Grav is amazing!
Tim