{% extends 'base.html' %}

{% block content %}
<div class="row">
    <div class="col-md-8">
    <h1> Unveröffentliche Artikel<br>
            </h1>
        {% for post in posts %}
        <div class="post mt-5">
            <p class="date">created: {{ post.created_date|date:'d-m-Y' }}</p>
            <h1><a href="{% url 'post_detail' pk=post.pk %}">{{ post.title }}</a></h1>
            <p>{{ post.text|truncatechars:200 }}</p>
        </div>
    </div>
</div>
{% endfor %}
{% endblock %}