aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2019-08-30 08:01:21 +0300
committerGitHub <[email protected]>2019-08-30 08:01:21 +0300
commitae249e8f559b88f9db78ed96a39f680aea43c051 (patch)
treed755797ab21dd876a0b6f3a70c5554594eef73c3
parent8360edc57bc9c6af4ca2b0bf76605bb6fecc9307 (diff)
downloadbootstrap-ae249e8f559b88f9db78ed96a39f680aea43c051.tar.xz
bootstrap-ae249e8f559b88f9db78ed96a39f680aea43c051.zip
docs-sidebar.html: reindent. (#29337)
-rw-r--r--site/layouts/partials/docs-sidebar.html34
1 files changed, 17 insertions, 17 deletions
diff --git a/site/layouts/partials/docs-sidebar.html b/site/layouts/partials/docs-sidebar.html
index 91df79c2f..1ffca3b0a 100644
--- a/site/layouts/partials/docs-sidebar.html
+++ b/site/layouts/partials/docs-sidebar.html
@@ -15,25 +15,25 @@
{{- $group_slug := $group.title | urlize -}}
{{- $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 }}">
- <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>
- </a>
+ <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 }}">
+ <div>{{ $group.title }}</div>
+ </a>
- {{- if $group.pages }}
- <ul class="nav bd-sidenav flex-column mb-2">
- {{- range $doc := $group.pages -}}
- {{- $doc_slug := $doc.title | urlize }}
- <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 }}/">
- {{- $doc.title -}}
- </a>
- </li>
- {{- end }}
- </ul>
+ {{- if $group.pages }}
+ <ul class="nav bd-sidenav flex-column mb-2">
+ {{- range $doc := $group.pages -}}
+ {{- $doc_slug := $doc.title | urlize }}
+ <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 }}/">
+ {{- $doc.title -}}
+ </a>
+ </li>
{{- end }}
- </li>
- {{- end }}
+ </ul>
+ {{- end }}
+ </li>
+ {{- end }}
<li class="my-3 mx-4 border-top"></li>
<li class="bd-sidenav-group pl-3">