From 7daa254c0b2be4055a40ef320f44e7d066dca753 Mon Sep 17 00:00:00 2001 From: Ahmed M Alaa Date: Mon, 5 Dec 2022 14:48:27 +0200 Subject: added: default taxonomies templates, custom nav links --- templates/contexts/list.html | 14 ++++++++++++++ templates/contexts/single.html | 26 ++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 templates/contexts/list.html create mode 100644 templates/contexts/single.html (limited to 'templates/contexts') diff --git a/templates/contexts/list.html b/templates/contexts/list.html new file mode 100644 index 0000000..c6a529b --- /dev/null +++ b/templates/contexts/list.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} + +{% block header %} +

..{{ current_path }}

+

{{ taxonomy.name }}

+{% endblock header %} + +{% block content %} +

+{% for term in terms %} +@{{ term.name }} +{% endfor %} +

+{% endblock content %} \ No newline at end of file diff --git a/templates/contexts/single.html b/templates/contexts/single.html new file mode 100644 index 0000000..7a3ab44 --- /dev/null +++ b/templates/contexts/single.html @@ -0,0 +1,26 @@ +{% extends "base.html" %} + +{% block header %} +

../{{ term.slug }}/

+

{{ term.name }}

+{% endblock header %} + +{% block content %} +{% if paginator %} +{% set pages = paginator.pages %} +{% else %} +{% set pages = term.pages %} +{% endif %} + +{% if paginator %} +

{% if paginator.previous %}<< First < Previous{% endif %} [{{ paginator.current_index }}/{{ paginator.number_pagers }}] {% if paginator.next %}Next > Last >>{% endif %}

+{% endif %} +{% endblock content %} \ No newline at end of file -- cgit v1.2.3