{% extends "news/base_blog.html" %} {% load url from future %} {% block content %} {% for object in latest %} {% url 'news-detail' object.published_on.year object.published_on.month object.published_on.day object.slug as the_url %}

{{ object.title }}

{% if object.summary %}

{{ object.summary }} read more...

{% else %}

{{ object.body|safe }}

{% endif %} {% if object.author.first_name and object.author.last_name %}

Published by {{object.author.first_name}} {{object.author.last_name}} on {{ object.published_on|date:"F j, Y" }}

{% else %}

Published by {{object.author.username}} on {{ object.published_on|date:"F j, Y" }}

{% endif %}
{% endfor %} {% endblock %}