From 6fafcf92402fd5f3cbae8e41ab0ee332fbb90703 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Fri, 7 Nov 2025 12:43:45 +0100 Subject: [PATCH] WIP --- dist/templates/layout.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/templates/layout.html b/dist/templates/layout.html index 8c416bf..3dd7ec1 100644 --- a/dist/templates/layout.html +++ b/dist/templates/layout.html @@ -160,7 +160,7 @@ 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)} -- 2.39.5