summaryrefslogtreecommitdiff
path: root/zola/templates/taxonomy_single.html
diff options
context:
space:
mode:
authorNicolas Dato <nicolas.dato@gmail.com>2024-11-26 11:50:27 -0300
committerNicolas Dato <nicolas.dato@gmail.com>2024-11-26 12:16:42 -0300
commit8354b8f77fdfd907f07574b63e910aba09232ade (patch)
tree14ea9df29a441c097f46b20b63f6c952e4e6ccb9 /zola/templates/taxonomy_single.html
parent40b19b34385a1c6dcefcfaa3e9fa2087ab16ff07 (diff)
downloadndato.com-8354b8f77fdfd907f07574b63e910aba09232ade.tar.gz
ndato.com-8354b8f77fdfd907f07574b63e910aba09232ade.tar.bz2
first article, safer pointers
Diffstat (limited to 'zola/templates/taxonomy_single.html')
-rw-r--r--zola/templates/taxonomy_single.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/zola/templates/taxonomy_single.html b/zola/templates/taxonomy_single.html
new file mode 100644
index 0000000..d5641e5
--- /dev/null
+++ b/zola/templates/taxonomy_single.html
@@ -0,0 +1,28 @@
+{% extends "base.html" %}
+
+{% block title %}{{ term.name }}{% endblock %}
+{% block header %}{{ term.name }}{% endblock %}
+{% block navigation %}<a href="/">Home</a> &gt; {{ taxonomy.name }} &gt; <a href="{{ current_path | safe }}">{{ term.name }}</a>{% endblock %}
+{% block content %}
+<dl title="List of {{ term.name }} entries">
+{% for page in term.pages %}
+<dt>
+ <p><a href="{{ page.path | safe}}">{{ page.title }}</a></p>
+</dt>
+<dd>
+ <p><em><date datetime="{{ page.date }}">{{ page.date }}</date></em>: {{ page.description }}</p>
+ <p>
+ {% for kind, values in page.taxonomies %}
+ {% set cat = get_taxonomy(kind=kind) -%}
+ <a href="{{ cat.permalink | safe }}">{{ kind }}</a>:
+ {% for v in values %}
+ {% if loop.index != 1%}, {% endif %}<a href="{{ get_taxonomy_url(kind=kind, name=v) | safe }}">{{ v }}</a>
+ {% endfor %}
+ <br/>
+ {% endfor %}
+ </p>
+</dd>
+{% endfor %}
+</dl>
+{% endblock %}
+