aboutsummaryrefslogtreecommitdiffstats
path: root/templates/taxonomy_single.html
diff options
context:
space:
mode:
authorAhmed M Alaa <aa@4b.cx>2022-12-03 21:01:01 +0200
committerAhmed M Alaa <aa@4b.cx>2022-12-03 21:01:01 +0200
commit028f23e96dd4c6a86465cb616be84480ac3a7a1e (patch)
treecaffe481ff29aab5111e69b242cfc072a84912b6 /templates/taxonomy_single.html
init: just ported the theme
Diffstat (limited to 'templates/taxonomy_single.html')
-rw-r--r--templates/taxonomy_single.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/templates/taxonomy_single.html b/templates/taxonomy_single.html
new file mode 100644
index 0000000..934cea5
--- /dev/null
+++ b/templates/taxonomy_single.html
@@ -0,0 +1,27 @@
+{% extends "base.html" %}
+
+{% block header %}
+<p><a href="{{ current_path }}">..</a>/{{ term.slug }}/</p>
+
+<h1>{{ term.name }}</h1>
+{% endblock header %}
+
+{% block content %}
+{% if paginator %}
+{% set pages = paginator.pages %}
+{% else %}
+{% set pages = term.pages %}
+{% endif %}
+<ul>
+{% for page in pages %}
+ <li>
+ <a href="{{ page.permalink | safe }}">{{ page.date }} - {{ page.title }}</a>
+ <br />
+ {{ page.description }}
+ </li>
+{% endfor %}
+</ul>
+{% if paginator %}
+<p>{% if paginator.previous %}<a href="{{ paginator.first }}">&lt;&lt; First</a> <a href="{{ paginator.previous }}">&lt; Previous</a>{% endif %} [{{ paginator.current_index }}/{{ paginator.number_pagers }}] {% if paginator.next %}<a href="{{ paginator.next }}">Next &gt;</a> <a href="{{ paginator.last }}">Last &gt;&gt;</a>{% endif %}</p>
+{% endif %}
+{% endblock content %} \ No newline at end of file