{% extends 'categories/base.html' %} {% block content %}

{{ category }}

{% if category.parent %}

Go up to {{ category.parent }}

{% endif %} {% if category.description %}

{{ category.description }}

{% endif %} {% if category.children.count %}

Subcategories

{% endif %}

Entries

{% if category.entries_set.all %} {% for entry in category.entries_set.all %}

{{ entry.headline }}

{% endfor %} {% else %}

No entries for {{ category }}

{% endif %} {% endblock %}