Skip to content

Commit 56eec58

Browse files
committed
show sub-pages in sidebar navigation when top-level page is selected
1 parent ae547c0 commit 56eec58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/partials/sidebar-tree.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
{{ $p := .page }}
2626
{{ $shouldDelayActive := .delayActive }}
2727
{{ $active := eq $p.CurrentSection $s }}
28-
{{ $show := or (and (not $p.Site.Params.ui.sidebar_menu_compact) ($p.IsAncestor $s)) ($p.IsDescendant $s) }}
28+
{{ $show := or (and (not $p.Site.Params.ui.sidebar_menu_compact) ($p.IsAncestor $s)) ($p.IsDescendant $s) (eq $s.Parent $p.Parent) ($p.IsDescendant $s.Parent) }}
2929
{{ $sid := $s.RelPermalink | anchorize }}
3030
<ul class="td-sidebar-nav__section pr-md-3">
3131
<li class="td-sidebar-nav__section-title">

0 commit comments

Comments
 (0)