Add needed template
Gio e@mail
Sat, 10 Aug 2024 23:19:33 -0400
1 files changed,
42 insertions(+),
0 deletions(-)
jump to
A
templates/section.html
@@ -0,0 +1,42 @@
+{% extends "base.html" %} + +{% block outline %} +<p class="subtitle"><strong>{{ section.description }}</strong></p> +. <br> +{% if section.toc %} + {% for h2 in section.toc %} + {% if loop.last %} + └── <a href="{{ h2.permalink | safe }}">{{ h2.title }}</a> <br> + {% if h2.children %} + {% for h3 in h2.children %} + {% if loop.last %} +     └── <a href="{{ h3.permalink | safe }}">{{ h3.title }}</a> <br> + {% break %} + {% endif %} +     ├── <a href="{{ h3.permalink | safe }}">{{ h3.title }}</a> <br> + {% endfor %} + {% endif %} + {% else %} + ├── <a href="{{ h2.permalink | safe }}">{{ h2.title }}</a> <br> + {% if h2.children %} + {% for h3 in h2.children %} + {% if loop.last %} + │  └── <a href="{{ h3.permalink | safe }}">{{ h3.title }}</a> <br> + {% break %} + {% endif %} + │  ├── <a href="{{ h3.permalink | safe }}">{{ h3.title }}</a> <br> + {% endfor %} + {% endif %} + {% endif %} + {% endfor %} +{% endif %} +{% endblock outline %} + +{% block title %} +{{ section.title }} +{% endblock title %} + + +{% block content %} +{{ section.content | safe }} +{% endblock content %}