Source

Django-Portfolio / templates / blog / post_archive.html

{% extends "blog/base.html" %}

{% block main %}
<section>
    {% if latest|length %}
    {% for post in latest %}
    <header>
        <h2><a href="{{ post.get_absolute_url }}">{{ post.title }}</a></h2>
        Posted {{ post.publish_at|date }} by {{ blog.user.get_full_name }}
    </header>
        <p>{{ post.excerpt|linebreaks }}</p>
    {% endfor %}
    {% else %}
        <p>Sorry, there a no posts yet. Check back soon.</p>
    {% endif %}
</section>
{% endblock %}