From 6a9aecc9a83f5643374af2c67d06120f4cab127f Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 7 Jul 2021 09:05:22 +0200 Subject: Make macro recursive Signed-off-by: Matthias Beyer --- templates/index.html | 2 +- templates/macro.html | 20 ++++++-------------- templates/section.html | 2 +- 3 files changed, 8 insertions(+), 16 deletions(-) diff --git a/templates/index.html b/templates/index.html index 4374b7c..1752e61 100644 --- a/templates/index.html +++ b/templates/index.html @@ -27,7 +27,7 @@ {% endfor %}

{{ config.title }}

- {{ macro::tree() }} + {{ macro::tree(sec=section) }} {% endblock nav %} diff --git a/templates/macro.html b/templates/macro.html index c89f094..242b42e 100644 --- a/templates/macro.html +++ b/templates/macro.html @@ -1,23 +1,15 @@ -{% macro tree() %} +{% macro tree(sec) %} {% endmacro tree %} diff --git a/templates/section.html b/templates/section.html index 3b82895..bdd02a0 100644 --- a/templates/section.html +++ b/templates/section.html @@ -11,5 +11,5 @@
  • {{ section.title }}
  • {{ section.title }}

    - {{ macro::tree() }} + {{ macro::tree(sec=section) }} {% endblock nav %} -- cgit v1.2.3