From 2ef7c0ec1ff976b807691fea23eaaf5ea1e93bc9 Mon Sep 17 00:00:00 2001 From: Jieiku Date: Sun, 27 Mar 2022 19:19:28 -0700 Subject: init --- templates/page.html | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 templates/page.html (limited to 'templates/page.html') diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..e3388c0 --- /dev/null +++ b/templates/page.html @@ -0,0 +1,40 @@ +{% extends "base.html" %} +{% import "macros/macros.html" as macros %} +{{config.title}} - {{page.title}} +{% block content %} +
+ {{ macros::title(page=page) }} + {{ page.content | safe }} + {% block page_before_footer %} + {% endblock page_before_footer %} + {% block page_footer %} + {{ macros::footer(page=page) }} + {% endblock page_footer %} + {% block page_after_footer %} + {% endblock page_after_footer %} +
+{% block toc %} + {% if page.extra.toc %} + {% set toc = page.toc %} + {% endif %} + {% if toc %} +
+
+

Index

+ {% for h in toc %} + + {% if h.children %} + {% for h2 in h.children %} + + {% endfor %} + {% endif %} + {% endfor %} +
+
+ {% endif %} +{% endblock toc %} +{% endblock content %} -- cgit v1.3.1