mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
docs(sidebar): active link
This commit is contained in:
parent
d9adaae5b0
commit
70175db429
1 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@
|
||||||
{{- $is_active_group := eq $.Page.Params.group $group_slug -}}
|
{{- $is_active_group := eq $.Page.Params.group $group_slug -}}
|
||||||
|
|
||||||
{{- if $group.pages }}
|
{{- 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 }}>
|
<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 }}
|
{{ $group.title }}
|
||||||
</button>
|
</button>
|
||||||
|
@ -34,8 +34,8 @@
|
||||||
</li>
|
</li>
|
||||||
{{- else }}
|
{{- else }}
|
||||||
<li class="my-3 mx-4 border-top"></li>
|
<li class="my-3 mx-4 border-top"></li>
|
||||||
<li{{ if $is_active_group }} class="active"{{ end }}>
|
<li>
|
||||||
<a href="/docs/{{ $.Site.Params.docs_version }}/{{ $group_slug }}/" class="d-inline-flex align-items-center rounded">
|
<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 }}
|
{{ $group.title }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Add table
Reference in a new issue