{% extends "site.html" %}

{% block body %}
    <header>
        <h1>Categories</h1>
    </header>

    {% if terms %}
        <ul>
            {% for term in terms %}
                <li>
                    <a href="{{ term.permalink | safe }}">{{ term.name | title }}</a><span class="muted">:
                    {{ term.pages | length }} article{{ term.pages | length | pluralize }}</span>
                </li>
            {% endfor %}
        </ul>
    {% endif %}
{% endblock body %}
