From 63cbc7c9108c0af6b5d3886c1487c51b3dc43c7f Mon Sep 17 00:00:00 2001 From: Tim Bannister Date: Sun, 16 Aug 2020 22:14:43 +0100 Subject: [PATCH] Fix buggy match for top of documentation The match was against the page title, which isn't as stable as the filename of the page. Switch to matching by filename. --- layouts/partials/sidebar-tree.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/sidebar-tree.html b/layouts/partials/sidebar-tree.html index f8c9832432..4bc83737ae 100644 --- a/layouts/partials/sidebar-tree.html +++ b/layouts/partials/sidebar-tree.html @@ -26,13 +26,13 @@ {{ $show := or (eq $s $p.FirstSection) (and (not $p.Site.Params.ui.sidebar_menu_compact) ($p.IsDescendant $s)) }} {{ $sid := $s.RelPermalink | anchorize }}