Skip to content

Commit a15ba98

Browse files
authored
docs(themes/dosmy/layouts/partials/sidebar-tree.html): added expand indicator (openservicemesh#291)
Added indicators for nested elements and active item Signed-off-by: Zach Rhoads <[email protected]>
1 parent 30727e5 commit a15ba98

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

themes/dosmy/layouts/partials/sidebar-tree.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737
<li class="td-sidebar-nav__section-title">
3838
<a href="{{ $s.RelPermalink }}" class="align-left pl-0 pr-2 td-sidebar-link td-sidebar-link__section
3939
{{ if not $show }} collapsed{{ end }}{{ if $active}} active{{ end }}
40-
">{{ $s.LinkTitle }}</a>
40+
">{{ if $active}}&or;{{else}}&gt;{{ end }} {{ $s.LinkTitle }}</a>
4141
</li>
42-
{{ if or (or $active $show) (eq $p.URL "/")}}
42+
{{ if or (or $active $show) (eq $p.RelPermalink "/")}}
4343
<ul class="td-sidebar-docs-menu">
4444
<li class="collapse {{ if $show }}show{{ end }}" id="{{ $sid }}">
4545
{{ $pages := where (union $s.Pages $s.Sections).ByWeight ".Params.toc_hide" "!=" true }}
@@ -49,9 +49,9 @@
4949
{{ $mid := printf "m-%s" (.RelPermalink | anchorize) }}
5050
{{ $pageActive := eq . $p }}
5151
<a class="td-sidebar-link td-sidebar-link__page {{ if and (not $shouldDelayActive) $pageActive }} active{{ end }}" id="{{ $mid }}" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
52-
{{ else if (eq $p.URL "/") }}
52+
{{ else if (eq $p.RelPermalink "/") }}
5353
{{ $mid := printf "m-%s" (.RelPermalink | anchorize) }}
54-
<a class="td-sidebar-link td-sidebar-link__page" id="{{ $mid }}" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
54+
<a class="td-sidebar-link td-sidebar-link__page" id="{{ $mid }}" href="{{ .RelPermalink }}">&gt; {{ .LinkTitle }}</a>
5555
{{ else }}
5656
{{ template "section-tree-nav-section" (dict "page" $p "section" .) }}
5757
{{ end }}

0 commit comments

Comments
 (0)