у меня почемуто неотрабатывает конструкция
{% if post.gallery.count != 0 %} /* Check if a gallery is attached to your blog post*/
{% for gallery in
post.gallery) %}
<div class="wrapper-gallery">
<h3>{{
gallery.name}}</h3>
<div class="gallery-itemscontent">
<div id="gallery_in_post" class="owl-carousel owl-theme">
{% for image in gallery.images %}
<div class="item">
<img src="{{ image.path }}" alt="">
</div>
{% endfor %}
</div>
</div>
</div>
{% endfor %}
{% endif %}