From 5327a1600e7c40cd53064956c22b20e85f4f5b44 Mon Sep 17 00:00:00 2001 From: exu Date: Thu, 3 Aug 2023 16:57:09 +0200 Subject: [PATCH] Implement correct fix for issue 27 --- plugins/page-toc/templates/components/page-toc.html.twig | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/page-toc/templates/components/page-toc.html.twig b/plugins/page-toc/templates/components/page-toc.html.twig index 6d941c6..a1465d4 100644 --- a/plugins/page-toc/templates/components/page-toc.html.twig +++ b/plugins/page-toc/templates/components/page-toc.html.twig @@ -1,5 +1,3 @@ -{# {% import _self as self %} #} - {% macro toc_loop(items) %} {% for item in items %} {% set class = loop.first ? 'first' : loop.last ? 'last' : null %} @@ -7,7 +5,7 @@ {{ item.label }} {% if item.children|length > 0 %} {% endif %} @@ -20,7 +18,7 @@ {% if table_of_contents is not empty %}

{{ 'PLUGIN_PAGE_TOC.TABLE_OF_CONTENTS'|t }}

{% endif %}