Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
ae249e8f
Unverified
Commit
ae249e8f
authored
5 years ago
by
XhmikosR
Committed by
GitHub
5 years ago
Browse files
Options
Download
Email Patches
Plain Diff
docs-sidebar.html: reindent. (#29337)
parent
8360edc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
site/layouts/partials/docs-sidebar.html
+17
-17
site/layouts/partials/docs-sidebar.html
with
17 additions
and
17 deletions
+17
-17
site/layouts/partials/docs-sidebar.html
+
17
-
17
View file @
ae249e8f
...
@@ -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"
>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets