Template source: _article_card_square.html

{% load i18n staticfiles publication_tags %} <div class="item-card item-card-{% if force_category %}{{ force_category.slug }}{% else %}{{ article.master_category.slug }}{% endif %} item-card-alt"> <a href="{{ article.get_absolute_url }}"> <div class="item-card-image pull-left"> {% if article.featured_image %} <img src="{{ article.featured_image.get_article_square_url }}" alt="{{ article.featured_image.title }}"> {% else %} <div class="placeholder-img lightgreybg"> <div class="vcenter-parent"> <div class="vcenter"> <img src="{% static 'dist/images/logo.png' %}" alt="My Trending Stories"/> </div> </div> </div> {% endif %} </div> <div class="item-card-content"> <div class="{% if force_category %}{{ force_category.get_color_class }}{% else %}{{ article.master_category.color_class }}{% endif %} item-card-category"> <h3>{% if force_category %}{{ force_category }}{% elif city_category %}{{ city_category }}{% else %}{{ article.master_category }}{% endif %}</h3> <div class="pull-right"> <span class="item-card-author">{{ article.author.full_name }}</span> {% if article.author.avatar %} <img class="avatar" src="{{ article.author.avatar.get_author_small_url }}" alt="{{ article.author }}"/> {% else %} <img class="avatar" src="{% static 'dist/images/avatar-default.jpg' %}" alt="{{ article.author }}"/> {% endif %} {# {% include '_tooltip_follow.html' with author=article.author %}#} </div> </div> <div class="item-card-title"> <h4>{{ article.title }}</h4> </div> <div class="item-card-texte"> <p>{{ article.long_description }}</p> </div> </div> <div class="clearfix"></div> </a> </div>