]> juplo.de Git - website/commitdiff
WIP frontend
authorKai Moritz <kai@juplo.de>
Fri, 7 Nov 2025 11:43:45 +0000 (12:43 +0100)
committerKai Moritz <kai@juplo.de>
Fri, 7 Nov 2025 11:43:45 +0000 (12:43 +0100)
dist/templates/layout.html

index 8c416bf3861da5dab0532c95db30d57c2ed713fb..3dd7ec1f086cf903463d38f1a6a54ca46e195f66 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 crumbs.get(pos-1) + '?about' == 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)}