From a117775fb5ab6f41f2fb96ea5f8b2a456084d91a Mon Sep 17 00:00:00 2001 From: Mole Shang <135e2@135e2.dev> Date: Mon, 27 Mar 2023 00:12:47 +0800 Subject: templates/taxonomy_{list, single}: new --- templates/taxonomy_list.html | 12 ++++++++++++ templates/taxonomy_single.html | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 templates/taxonomy_list.html create mode 100644 templates/taxonomy_single.html (limited to 'templates') diff --git a/templates/taxonomy_list.html b/templates/taxonomy_list.html new file mode 100644 index 0000000..3c83c16 --- /dev/null +++ b/templates/taxonomy_list.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} + +{% block content %} +
+

Tags

+ {% for term in terms %} +
+
{{ term.name }}
+
+ {% endfor %} +
+{% endblock %} diff --git a/templates/taxonomy_single.html b/templates/taxonomy_single.html new file mode 100644 index 0000000..146753a --- /dev/null +++ b/templates/taxonomy_single.html @@ -0,0 +1,34 @@ +{% extends "base.html" %} + +{% import "macros.html" as macros %} + +{% block content %} +{% if paginator %} +{% set pages = paginator.pages %} +{% else %} +{% set pages = term.pages %} +{% endif %} +
+
{{ term.name }}
+ {% for post in pages %} +
+
{{ post.title }}
+
+ {{ post.summary | safe }} + More +
+ +
+ {% endfor %} +{# {{ paginator.next }} #} +
+{% if paginator %} +{% include "paginator.html" %} +{% endif %} +{% endblock %} -- cgit v1.2.3