polyblog/blogapp/templates/blogapp/blogindex.html

22 lines
545 B
HTML

{% extends "base.html" %}
{% block header %}Neuigkeiten - Übersicht {% endblock %}
{% block headline %}Neuigkeiten{% endblock %}
{% block content %}
{% autoescape off %}
{% if blogentries %}
{% for blogentry in blogentries %}
<h1>{{ blogentry.header }}</h1>
<small>posted on: {{blogentry.date}} by {{blogentry.user.username}}</small>
<p>{{blogentry.intro|linebreaks}}</p><a href="{% url 'detail' blogentry.id %}">Read more...</a><br/>
{% endfor %}
{% else %}
<p>No entries are available.</p>
{% endif %}
{% endautoescape %}
{% endblock %}