diff --git a/themes/learn2-dark/templates/partials/sidebar.html.twig b/themes/learn2-dark/templates/partials/sidebar.html.twig new file mode 100644 index 0000000..b176189 --- /dev/null +++ b/themes/learn2-dark/templates/partials/sidebar.html.twig @@ -0,0 +1,68 @@ +{% macro loop(page, parent_loop) %} + {% import _self as self %} + + {% if parent_loop|length > 0 %} + {% set data_level = parent_loop %} + {% else %} + {% set data_level = 0 %} + {% endif %} + {% for p in page.children.visible %} + {% set parent_page = p.activeChild ? ' parent' : '' %} + {% set current_page = p.active ? ' active' : '' %} +