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/base.html | 14 ++++++++++++++ templates/categories/list.html | 16 ++++++++++++++++ templates/categories/single.html | 26 ++++++++++++++++++++++++++ templates/contexts/list.html | 14 ++++++++++++++ templates/contexts/single.html | 26 ++++++++++++++++++++++++++ templates/index.html | 2 +- templates/page.html | 18 +++++++++++++++++- templates/tags/list.html | 14 ++++++++++++++ templates/tags/single.html | 26 ++++++++++++++++++++++++++ templates/taxonomy_list.html | 1 - templates/taxonomy_single.html | 3 +-- 11 files changed, 155 insertions(+), 5 deletions(-) create mode 100644 templates/categories/list.html create mode 100644 templates/categories/single.html create mode 100644 templates/contexts/list.html create mode 100644 templates/contexts/single.html create mode 100644 templates/tags/list.html create mode 100644 templates/tags/single.html (limited to 'templates') diff --git a/templates/base.html b/templates/base.html index e00a202..9e3965f 100644 --- a/templates/base.html +++ b/templates/base.html @@ -95,6 +95,13 @@
+ {% if config.extra.header_nav %} + + {% endif %} {% block header %}{% if title %}

{{ config.title }}

{% endif %}{% endblock header %}
@@ -102,6 +109,13 @@
{% block footer %}{% endblock footer %} + {% if config.extra.footer_nav %} + + {% endif %}
diff --git a/templates/categories/list.html b/templates/categories/list.html new file mode 100644 index 0000000..83b74fb --- /dev/null +++ b/templates/categories/list.html @@ -0,0 +1,16 @@ +{% extends "base.html" %} + +{% block header %} +

..{{ current_path }}

+

{{ taxonomy.name }}

+{% endblock header %} + +{% block content %} + +{% endblock content %} \ No newline at end of file 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 %} +

../{{ 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 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 diff --git a/templates/index.html b/templates/index.html index 40487bc..dafb0e4 100644 --- a/templates/index.html +++ b/templates/index.html @@ -12,7 +12,7 @@