Source

Django-Portfolio / templates / blog / post_detail.html

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

{% block page_title %}
    {{ object.title }} |
        {% with object.blog as blog %}
            {{ block.super }}
        {% endwith %}
{% endblock %}

{% block main %}
<section>
<header>
    <h3>{{ object.title }}</h3>
</header>
<article>
        Posted {{ object.publish_at }} by {{ object.blog.user.get_full_name }}
        <br />
        Tags: 
            {% for tag in object.tags.all %}
                {{ tag }},
            {% endfor %}
        <br /><br />
    {{ object.body|linebreaks }}
</article>
<nav>
    {% with object.get_previous_by_publish_at as prev %}
        {% if prev and prev.is_visible %}
            <a href="{{ prev.get_absolute_url }}">&lt; {{ prev }}</a>
        {% endif %}
    {% endwith %}
    {% with object.get_next_by_publish_at as next %}
        {% if next and next.is_visible %}
        <a href="{{ next.get_absolute_url }}"> {{ next }} &gt;</a>
        {% endif %}
    {% endwith %}
</nav>
</section>
{% endblock %}