Back

Template Source: media/news_list.html

{% extends 'base.html' %} {% block title %}News{% endblock %} {% block header %} {% include 'includes/top_nav.html' with on="media" %} {% endblock %} {% block content %} <div class="content"> <div class="page"> {% include 'media/includes/menu.html' with on='news' %} <div class="blocks"> {% for object in object_list %} <div class="block"> <div class="image"> <a href="{% url 'news_detail' object.slug %}"><img src="{{ object.get_460x420_url }}" /></a> <span class="arrow"></span> </div> <div class="text"> <div class="inner"> <h2>{{ object.publish_at|date:"j F Y" }}</h2> <h3><a href="{% url 'news_detail' object.slug %}">{{ object.title|truncatewords:10 }}</a></h3> </div> </div> </div><!--/block--> {% empty %} <div class="container"> <p class="empty">There are no news articles to display.</p> </div> {% endfor %} </div><!--/blocks--> </div><!--/page--> </div><!--/content--> {% endblock %}