From: Kai Moritz Date: Sun, 26 Oct 2025 11:10:29 +0000 (+0100) Subject: Navigation für alte (nicht verlinkte) Projekt-Versionen repariert X-Git-Url: https://juplo.de/gitweb/?a=commitdiff_plain;h=b726fe0165f2b53d7c6e9f47e9216a1b9a980607;p=website Navigation für alte (nicht verlinkte) Projekt-Versionen repariert --- diff --git a/dist/templates/layout.html b/dist/templates/layout.html index 838e9234..3a7a796c 100644 --- a/dist/templates/layout.html +++ b/dist/templates/layout.html @@ -158,7 +158,9 @@ th:each="entry : ${submenu}" th:with=" child=${pos == len}, - selected=${!child and crumbs.get(pos) == entry}, + hidden=${!child && _canonical.get(crumbs.get(pos)) == entry}, + entry=${hidden?crumbs.get(pos):entry}, + selected=${!child and (crumbs.get(pos) == entry or hidden)}, leaf=${pos >= (len - 1) and not selected}, sibling=${pos + 1 == len and (_childs.get(uri) == null or uri == parent)}, childs=${entry == parent ? null : _childs.get(entry)}