updated tag list

This commit is contained in:
Parker TenBroeck 2026-01-20 20:06:28 -05:00
parent 4886fa19c9
commit 17815ebf1f

View file

@ -1,4 +1,5 @@
{% extends "base.html" %} {% extends "base.html" %}
{% import "macros/post.html" as post %}
{% import "macros/taxonomy.html" as macros %} {% import "macros/taxonomy.html" as macros %}
{% block main %} {% block main %}
@ -9,8 +10,16 @@
{%- set num_terms = terms | length %} {%- set num_terms = terms | length %}
<ul class="taxonomy-list{%- if num_terms > 16 %} three-column{%- elif num_terms > 8 %} two-column{%- endif -%}"> <ul class="taxonomy-list{%- if num_terms > 16 %} three-column{%- elif num_terms > 8 %} two-column{%- endif -%}">
{%- for term in terms %} {%- for term in terms %}
{%- set page_count = [term.page_count ~ " post", term.page_count | pluralize] | join %} {# {%- 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> <li>
<h4 style="margin-bottom: 0.25em;margin-top: 0.5em"><a href="{{ term.permalink | safe }}">{{ macros::prettify(term=term.name) }}</a></h4>
<ul>
{% for page in term.pages%}
<li>{{post::page_link(path=page.relative_path)}}</li>
{%- endfor %}
</ul>
</li>
{%- endfor %} {%- endfor %}
</ul> </ul>