Moving forward.
[wolnelektury.git] / src / social / templates / social / carousel_2022.html
index a7af46c..2d91721 100644 (file)
@@ -1,7 +1,7 @@
-{% if banner %}
-<a href="{{ banner.link }}">
+{% for banner in banners %}
   {% if banner.picture %}
-  <img src="{{ banner.picture.url }}">
+    <div style="background-image: url('{{ banner.picture.url }}');">
+      <a href="{{ banner.link }}"></a>
+    </div>
   {% endif %}
-</a>
-{% endif %}
+{% endfor %}