Unverified Commit ae249e8f authored by XhmikosR's avatar XhmikosR Committed by GitHub
Browse files

docs-sidebar.html: reindent. (#29337)

parent 8360edc5
Showing with 17 additions and 17 deletions
+17 -17
...@@ -15,25 +15,25 @@ ...@@ -15,25 +15,25 @@
{{- $group_slug := $group.title | urlize -}} {{- $group_slug := $group.title | urlize -}}
{{- $active_group := eq $.Page.Params.group $group_slug }} {{- $active_group := eq $.Page.Params.group $group_slug }}
<li class="bd-sidenav-group my-1{{ if $active_group }} active{{ end }} js-sidenav-group{{ if $group.pages }} has-children{{ end }}"> <li class="bd-sidenav-group my-1{{ if $active_group }} active{{ end }} js-sidenav-group{{ if $group.pages }} has-children{{ end }}">
<a class="d-inline-flex align-items-center bd-sidenav-group-link" href="/docs/{{ $.Site.Params.docs_version }}/{{ $group_slug }}/{{ if $group.pages }}{{ $link_slug }}/{{ end }}"> <a class="d-inline-flex align-items-center bd-sidenav-group-link" href="/docs/{{ $.Site.Params.docs_version }}/{{ $group_slug }}/{{ if $group.pages }}{{ $link_slug }}/{{ end }}">
<div>{{- $group.title -}}</div> <div>{{ $group.title }}</div>
</a> </a>
{{- if $group.pages }} {{- if $group.pages }}
<ul class="nav bd-sidenav flex-column mb-2"> <ul class="nav bd-sidenav flex-column mb-2">
{{- range $doc := $group.pages -}} {{- range $doc := $group.pages -}}
{{- $doc_slug := $doc.title | urlize }} {{- $doc_slug := $doc.title | urlize }}
<li{{ if and $active_group (eq $page_slug $doc_slug) }} class="active bd-sidenav-active"{{ end }}> <li{{ if and $active_group (eq $page_slug $doc_slug) }} class="active bd-sidenav-active"{{ end }}>
<a href="/docs/{{ $.Site.Params.docs_version }}/{{ $group_slug }}/{{ $doc_slug }}/"> <a href="/docs/{{ $.Site.Params.docs_version }}/{{ $group_slug }}/{{ $doc_slug }}/">
{{- $doc.title -}} {{- $doc.title -}}
</a> </a>
</li> </li>
{{- end }}
</ul>
{{- end }} {{- end }}
</li> </ul>
{{- end }} {{- end }}
</li>
{{- end }}
<li class="my-3 mx-4 border-top"></li> <li class="my-3 mx-4 border-top"></li>
<li class="bd-sidenav-group pl-3"> <li class="bd-sidenav-group pl-3">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment