{% extends "site.html" %}

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

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