{% extends "base.html" %}

{% block header %}Neuigkeiten - Übersicht {% endblock %}
{% block headline %}Neuigkeiten{% endblock %}

{% block content %}
{% autoescape off %}
{% if blogentries %}
{% for blogentry in blogentries %}
{% if blogentry.published %}
<h1>{{ blogentry.header }}</h1>
<small>posted on: {{blogentry.date}} by {{blogentry.user.username}}</small>
<p>{{blogentry.intro|linebreaks}}
<small>Filed under: {% for category in blogentry.categories.all %} {{ category }} {% endfor %}</small>
</p><a href="{% url 'detail' blogentry.id %}">Read more...</a><br/>
{% endif %}
{% endfor %}
{% else %}
<p>No entries are available.</p>
{% endif %}
{% endautoescape %}
{% endblock %}

