about summary refs log tree commit diff
path: root/templates/taxonomy_list.html
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-03-26 16:55:25 +0900
committersefidel <contact@sefidel.net>2023-03-26 16:55:25 +0900
commit77ffc8dfeabd45cb3fac500902fcbcb7176edcc7 (patch)
tree4c3a538e0792d60ca637a3921341820087311233 /templates/taxonomy_list.html
downloadsefidel-web-77ffc8dfeabd45cb3fac500902fcbcb7176edcc7.tar.gz
sefidel-web-77ffc8dfeabd45cb3fac500902fcbcb7176edcc7.zip
project: Initial commit
Diffstat (limited to 'templates/taxonomy_list.html')
-rw-r--r--templates/taxonomy_list.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/templates/taxonomy_list.html b/templates/taxonomy_list.html
new file mode 100644
index 0000000..0c4a579
--- /dev/null
+++ b/templates/taxonomy_list.html
@@ -0,0 +1,23 @@
+{% extends "base.html" %}
+
+{% block html_title %}{{ taxonomy.name | capitalize }} | {{ config.title }}{% endblock html_title %}
+
+{% block content %}
+  <h1 class="title">
+    {{ taxonomy.name | capitalize }}
+  </h1>
+  <h3>{{ terms | length }} term{{ terms | length | pluralize }}</h3>
+  <table class="terms">
+    <tbody>
+      {% for term in terms %}
+      <tr>
+        <td>
+          <b><span class="prefix">|</span></b>
+          <a href="{{ term.permalink }}">{{ term.name }}</a>
+          ({{ term.pages | length }} post{{ term.pages | length | pluralize }})
+        </td>
+      </tr>
+      {% endfor %}
+    </tbody>
+  </table>
+{% endblock content %}