{% extends "base.html" %}

{% block main_content %}
{{ post_macros::page_header(title=taxonomy.name) }}
<p>go to <a href="{{ get_url(path='@/posts/_index.md') }}">all posts</a>.</p>

<ul>
  {% for term in terms %}
  {%- set pages = term.pages | length -%}
  <li><a class="tag-link" href="{{ term.permalink }}">{{ term.name }} ({{ pages }} page{{ pages | pluralize }})</a></li>
  {% endfor %}
</ul>
{% endblock main_content %}