]> juplo.de Git - website/commitdiff
Übersichtsseite eines Projekts wird explizit angezeigt und ist ausgewählt
authorKai Moritz <kai@juplo.de>
Fri, 7 Nov 2025 11:39:24 +0000 (12:39 +0100)
committerKai Moritz <kai@juplo.de>
Fri, 7 Nov 2025 17:07:48 +0000 (18:07 +0100)
dist/templates/layout.html

index 3a7a796c62a4e8fdf1d5cc7c28185c8feb6a6ceb..939f9e32da7b3419d4719abd7998ca0dcf584b79 100644 (file)
                       child=${pos == len},
                       hidden=${!child && _canonical.get(crumbs.get(pos)) == entry},
                       entry=${hidden?crumbs.get(pos):entry},
-                      selected=${!child and (crumbs.get(pos) == entry or hidden)},
+                      selected=${(child and crumbs.get(pos-1) + '?about' == entry) or (!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)}