aboutsummaryrefslogtreecommitdiffstats
path: root/templates/categories/single.html
diff options
context:
space:
mode:
authorAhmed M Alaa <aa@4b.cx>2022-12-05 14:48:27 +0200
committerAhmed M Alaa <aa@4b.cx>2022-12-05 14:48:27 +0200
commit7daa254c0b2be4055a40ef320f44e7d066dca753 (patch)
treea1e5998194299808803a8812d7fe283a0fae0e75 /templates/categories/single.html
parent2d7be35ef50d37f5057248d20cbeb1f06fd5cde0 (diff)
added: default taxonomies templates, custom nav links
Diffstat (limited to 'templates/categories/single.html')
-rw-r--r--templates/categories/single.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/templates/categories/single.html b/templates/categories/single.html
new file mode 100644
index 0000000..7a3ab44
--- /dev/null
+++ b/templates/categories/single.html
@@ -0,0 +1,26 @@
+{% 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 }}">{% if page.date %}{{ page.date }} - {% endif %}{{ 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