mirror of
https://github.com/ParkerTenBroeck/ParkerTenBroeck.github.io.git
synced 2026-06-07 05:18:40 -04:00
First
This commit is contained in:
commit
6449151d7a
38 changed files with 779 additions and 0 deletions
18
templates/taxonomy_list.html
Normal file
18
templates/taxonomy_list.html
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{% 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 %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue