{% extends "base.html" %}
{% import "macros/taxonomy.html" as macros %}

{% block main %}


<h1>{{ taxonomy.name | title }}</h1>

{%- set num_terms = terms | length %}
<ul class="taxonomy-list{%- if num_terms > 16 %} three-column{%- elif num_terms > 8 %} two-column{%- endif -%}">
    {%- for term in terms %}
    {%- set page_count = [term.page_count ~ " post", term.page_count | pluralize] | join %}
    <li><a href="{{ term.permalink | safe }}">{{ macros::prettify(term=term.name) }}</a> ({{ page_count }})</li>
    {%- endfor %}
</ul>


{% endblock main %}