From 8b9f64b31bad71cd36e364be217733974ae7d303 Mon Sep 17 00:00:00 2001 From: Lyle Mantooth Date: Sat, 15 Oct 2022 11:50:09 -0400 Subject: [PATCH] Override section.html for index content. --- templates/section.html | 72 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 templates/section.html diff --git a/templates/section.html b/templates/section.html new file mode 100644 index 0000000..b68b2ee --- /dev/null +++ b/templates/section.html @@ -0,0 +1,72 @@ +{% extends "index.html" %} {% import "macros.html" as macros %} {% block header +%} + +
+ +
+{% endblock header %} {% block title %} {% endblock title %} {% block main %} + +
+ {{ section.content | safe }} +

{{ section.title }}

+ {% for year, pages in section.pages | group_by(attribute="year") %} +
+
{{ year }}
+ +
+ {% endfor %} +
+ +{% endblock main %} {% block footer %} {{ macros::footer() }} {% endblock footer +%}