diff options
author | Gaƫl Poupard <gael.poupard@orange.com> | 2020-12-14 16:48:08 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2021-01-08 10:49:18 +0300 |
commit | 70175db4294641c91e825b5e2555e7d7d398e320 (patch) | |
tree | ac9e6aba68808a276ff17a450e09262666468453 | |
parent | d9adaae5b0fe41e237f20f2dc1232a1025af9d1b (diff) |
docs(sidebar): active link
-rw-r--r-- | site/layouts/partials/docs-sidebar.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/site/layouts/partials/docs-sidebar.html b/site/layouts/partials/docs-sidebar.html index ba974f4cde..eec268ceb2 100644 --- a/site/layouts/partials/docs-sidebar.html +++ b/site/layouts/partials/docs-sidebar.html @@ -16,7 +16,7 @@ {{- $is_active_group := eq $.Page.Params.group $group_slug -}} {{- if $group.pages }} - <li class="mb-1{{ if $is_active_group }} active{{ end }}"> + <li class="mb-1"> <button class="btn d-inline-flex align-items-center rounded{{ if not $is_active_group }} collapsed{{ end }}" data-bs-toggle="collapse" data-bs-target="#{{ $group_slug }}-collapse" aria-expanded="{{ $is_active_group }}"{{ if $is_active_group }} aria-current="true"{{ end }}> {{ $group.title }} </button> @@ -34,8 +34,8 @@ </li> {{- else }} <li class="my-3 mx-4 border-top"></li> - <li{{ if $is_active_group }} class="active"{{ end }}> - <a href="/docs/{{ $.Site.Params.docs_version }}/{{ $group_slug }}/" class="d-inline-flex align-items-center rounded"> + <li> + <a href="/docs/{{ $.Site.Params.docs_version }}/{{ $group_slug }}/" class="d-inline-flex align-items-center rounded{{ if $is_active_group }} active{{ end }}"{{ if $is_active_group }} aria-current="page"{{ end }}> {{ $group.title }} </a> </li> |