From 8b7abbd6f489c71f9c3b657d2a989b00fcdb09b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Mon, 26 May 2014 17:31:35 +0200 Subject: [PATCH] Render articles of level > 2 in summary --- theme/templates/includes/book/summary.html | 46 ++++++++++------------ 1 file changed, 20 insertions(+), 26 deletions(-) diff --git a/theme/templates/includes/book/summary.html b/theme/templates/includes/book/summary.html index b4859fce0..697cce87c 100644 --- a/theme/templates/includes/book/summary.html +++ b/theme/templates/includes/book/summary.html @@ -1,3 +1,22 @@ +{% macro articles(_articles) %} + {% for item in _articles %} +
  • + {% if item.path %} + + {{ item.level }}. {{ item.title }} + + {% else %} + {{ item.level }}. {{ item.title }} + {% endif %} + {% if item.articles.length > 0 %} + + {% endif %} +
  • + {% endfor %} +{% endmacro %} +