Template source: _home_category_box.html

{% load i18n publication_tags %} {% get_master_category %} <section class="cat-box line-bottom"> <div class="container-fluid"> <div class="cat-box-title"> <h2 class="no-padding {{ category.color_class }} no-margin" {% if category.slug in city_category_slugs %}id="city-desktop"{% endif %}> {% if category.slug in city_category_slugs %} {{ category.title }} {% else %} <a href="{% url 'category_single' category.slug %}"> {{ category.title }} </a> {% endif %} </h2> <span> <a href="{% url 'category_single' category.slug %}" class="{{ category.color_class }}"> {% trans "Show more" %} {{ category.title }} <i class="fa fa-angle-right"></i> </a> </span> </div> <div class="cat-box-gallery"> <div class="row article-row"> {% for article in articles %} {% if forloop.counter == random %} <div class="col-sm-40"> {% if article.get_city_category %} {% include '_article_card_square.html' with city_category=article.get_city_category %} {% else %} {% include '_article_card_square.html' %} {% endif %} </div> {% else %} <div class="col-sm-15"> {% if article.get_city_category %} {% include '_article_card.html' with city_category=article.get_city_category %} {% else %} {% include '_article_card.html' %} {% endif %} </div> {% endif %} {% endfor %} </div> </div> </div> </section>