post_list.html
440 Bytes
{% extends 'website/base.html' %}
{% block content %}
{% for post in posts %}
<div class="post">
<div class="date">
<p>published: {{ post.published_date }}</p>
</div>
<h1>
<h1><a href="{% url 'post_detail' pk=post.pk %}">{{ post.title }}</a></h1>
</h1>
<p>{{ post.text|linebreaksbr }}</p>
</div>
{% endfor %}
{% endblock %}