]> juplo.de Git - website/commitdiff
WIP
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 11:39:24 +0000 (12:39 +0100)
dist/templates/layout.html

index f9dab7bfd955e8e233021d3fa5f9c3ccab55451a..b452de7c556374dd4aa16cb9ba91104134faea01 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 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)}