<div class="item"> <a href="{{ item.get_absolute_url }}"> <div class="info"> <h1>{{ item.title }}</h1> <h2>{{ item.data.title }}</h2> </div> <div class="image {{item.data.type }}"> <img src={{ item.data.thumbnail }}> </div> </a> {% if item.public_comments.count %} <div class="comments"> {% with comments=item.public_comments.count %} <a href="{{ item.get_absolute_url }}">{{ comments }} comment{{ comments |pluralize }}</a> {% endwith %} </div> {% endif %} </div>