all repos — website.git @ 012eab750a9aa0e5a8ca98f2dc273fc5bba05865

Files for the website.

Add needed template
Gio e@mail
Sat, 10 Aug 2024 23:19:33 -0400
commit

012eab750a9aa0e5a8ca98f2dc273fc5bba05865

parent

1bcd45ed5c9eccfd470c7e13e7ee095b205af9b0

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 %} + &nbsp&nbsp&nbsp └── <a href="{{ h3.permalink | safe }}">{{ h3.title }}</a> <br> + {% break %} + {% endif %} + &nbsp&nbsp&nbsp ├── <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 %} + │&nbsp └── <a href="{{ h3.permalink | safe }}">{{ h3.title }}</a> <br> + {% break %} + {% endif %} + │&nbsp ├── <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 %}