From a30f5e8b8006b516adc2cb25ebbc4b82b9f8351e Mon Sep 17 00:00:00 2001 From: DKFN Date: Sat, 5 Oct 2019 18:04:28 +0200 Subject: [PATCH] Adds simple section page --- templates/section.html | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 templates/section.html diff --git a/templates/section.html b/templates/section.html new file mode 100644 index 0000000..4a4377a --- /dev/null +++ b/templates/section.html @@ -0,0 +1,31 @@ +{% extends "index.html" %} +{% import "post_macros.html" as post_macros %} +{% import "index_macros.html" as index_macros %} + +{% block content %} + +{% block header %} +{{ super() }} +{% endblock header %} + +
+ {{ index_macros::hero(title=section.extra.zulma_title, primary=true) }} +
+
+
+ {% if paginator %} + {{ index_macros::list_articles(pages=paginator.pages) }} + {% else %} + {{ index_macros::list_articles(pages=section.pages) }} + {% endif %} + + + {% if paginator %} + {{ index_macros::paginate(paginator=paginator) }} + {% endif %} + +
+
+
+
+{% endblock content %} \ No newline at end of file