From 813c8d6989293e53620a64c3cfe5479a64001479 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Thu, 23 Jun 2022 17:01:09 +0200 Subject: [PATCH] (Grav GitSync) Automatic Commit from RealStickman --- .../templates/partials/.sidebar.html.twig.swp | Bin 12288 -> 12288 bytes .../templates/partials/sidebar.html.twig | 9 +++++++++ 2 files changed, 9 insertions(+) diff --git a/themes/learn2/templates/partials/.sidebar.html.twig.swp b/themes/learn2/templates/partials/.sidebar.html.twig.swp index b6bf9b086844363716e40423e69439e43b6ca4b4..524ee6d5f0d5b06ac873c06ba65834b837fb75af 100644 GIT binary patch delta 383 zcmXZWu}i~16bA5DYFm}64OD6o@eBrkWPmNQ@CHJcO_y-ytHQesvA5Sz29QHImfm}%Fx9FJ*jk{9AI zrw#8^4bRDQ$8j@F(-SXxdU~P3nN=&Qtrqinqt4oGl^MM1`$cuvaV^7F7fGDz=@l&a zmSf9B9aDdyGFTq8$toF;V;EqT&D?6;^z+8H#cQ5v%WsIDKAuEqnVU_Mm;VFt5)`uc Fkze`aWMKdR delta 198 zcmWm7u@1pd0EOXm)AUw_XcvN|5)J8WtE4YrU=YT>gRr_!V7a3h3})hb0E^8FNDKyv zMMAJy9K*N%ze-iQd03)vo>q_(vGKikA%B;^#{u90vG#-Yw3G#IE-)uWLuyk*RjSY_ z159X411giGFH8U0h4yqLLkk*FLPfgrx+6ndTGEWV5+_ JVdCgu{{SVHCk_Ar diff --git a/themes/learn2/templates/partials/sidebar.html.twig b/themes/learn2/templates/partials/sidebar.html.twig index 05c90a9..ae90804 100644 --- a/themes/learn2/templates/partials/sidebar.html.twig +++ b/themes/learn2/templates/partials/sidebar.html.twig @@ -40,6 +40,14 @@
+ {% if theme_config.top_level_version %} + {% for slug, ver in pages.children %} + {{ macro.version(ver) }} +
    + {{ macro.loop(ver, '') }} +
+ {% endfor %} + {% else %}
    {% if theme_config.root_page %} {{ macro.loop(page.find(theme_config.root_page), '') }} @@ -47,6 +55,7 @@ {{ macro.loop(pages, '') }} {% endif %}
+ {% endif %}