{% if banners %}
<div class="content-block">
  <div id="banner{{ module }}" class="swiper-container">
    <div class="swiper-wrapper">
    	{% for banner in banners %}
		<div class="swiper-slide">
		{% if banner.link %}
			<a href="{{ banner.link }}"><img src="{{ banner.image }}" alt="{{ banner.title }}" class="d-block mx-auto" loading="lazy" /></a>
		{% else %}
			<img src="{{ banner.image }}" alt="{{ banner.title }}" class="d-block mx-auto" />
		{% endif %}
		</div>
		{% endfor %}
	</div>
  </div>
</div>
<script>
$('#banner{{ module }}').swiper({
	effect: 'fade',
	autoplay: 2500,
    autoplayDisableOnInteraction: false
});
</script> 
{% endif %}