ParkerTenBroeck.github.io/templates/taxonomy_list.html
Parker TenBroeck 6449151d7a First
2026-01-16 22:02:02 -05:00

18 lines
No EOL
560 B
HTML

{% 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 %}