Skip to content

Commit

Permalink
Fix events list on homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
amakarudze committed May 22, 2024
1 parent 988a5ba commit 494524b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions templates/core/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,11 @@ <h2>
<div class="row-container">
<div class="row">
{% for event in future_events %}
{% include 'includes/_event.html' with event=event %}
{% if forloop.counter|divisibleby:3 %}</div><div class="row">{% endif %}
{% if forloop.first %}<div class="row">{% endif %}
<div class="col-md-3">
{% include 'includes/_event.html' with event=event %}</div>
{% if forloop.counter|divisibleby:4 %}</div><div class="row">{% endif %}
{% if forloop.last %}</div>{% endif %}
{% endfor %}
</div>
</div>
Expand Down

0 comments on commit 494524b

Please sign in to comment.