From d9f3ebc7a6f8e48a9dd6f2fb49da36b8cc71bc06 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 6 Jul 2021 22:36:04 +0200 Subject: Display menu tree completely, and partially in subsections Signed-off-by: Matthias Beyer --- templates/macro.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/macro.html b/templates/macro.html index b85aa10..ef2a56d 100644 --- a/templates/macro.html +++ b/templates/macro.html @@ -4,9 +4,13 @@ {% for subsection in section.subsections | sort %} {% set subsection_item = get_section(path=subsection) %}
  •  {{ subsection_item.title }}
  • + {% for subpage in subsection_item.pages %} +
  •  {{ subpage.title }}
  • {% endfor %} + {% else %} {% for subpage in section.pages %} -
  •  {{ subpage.title }}
  • +
  •  {{ subpage.title }}
  • + {% endfor %} {% endfor %} {% endmacro tree %} -- cgit v1.2.3