diff --git a/templates/front/index.html b/templates/front/index.html index f27ad58..866c66b 100644 --- a/templates/front/index.html +++ b/templates/front/index.html @@ -64,14 +64,21 @@ +
{% for section in section_data %} - {#
#} -
- {% url "front:main_list" main=section.key as card_more_url %} - {% include 'components/_news_card.html' with data=section.data unique_id=section.key more_url=card_more_url %} -
+ {% if forloop.revcounter == 1 and forloop.counter|add:"0"|divisibleby:"2" == False %} + +
+ {% url "front:main_list" main=section.key as card_more_url %} + {% include 'components/_news_card.html' with data=section.data unique_id=section.key more_url=card_more_url %} +
+ {% else %} +
+ {% url "front:main_list" main=section.key as card_more_url %} + {% include 'components/_news_card.html' with data=section.data unique_id=section.key more_url=card_more_url %} +
+ {% endif %} {% endfor %}
- {% endblock %}