From 36eccdd102cf2da72e9ebb74dbb0b47aa9ba9ad6 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Thu, 5 Oct 2017 11:50:51 +0200 Subject: [PATCH] Re-indent table of content code --- blog/templates/page.html | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/blog/templates/page.html b/blog/templates/page.html index 57534203..6cc5fc57 100644 --- a/blog/templates/page.html +++ b/blog/templates/page.html @@ -11,22 +11,16 @@ + {% for h2 in page.toc %}
  • + {{ h2.title }} + {% if h2.children %}
      + {% for h3 in h2.children %}
    1. + {{ h3.title }} +
    2. {% endfor %} +
    {% endif %} +
  • {% endfor %} + + {{ page.content | safe }} {% endblock main %}