File tree Expand file tree Collapse file tree 4 files changed +16
-18
lines changed Expand file tree Collapse file tree 4 files changed +16
-18
lines changed Original file line number Diff line number Diff line change 1
- # title: About
2
- # version: 2.0
1
+ title : About
2
+ version : 2.0
3
3
# title_url: /events.html
4
4
subitems :
5
5
- title : About
Original file line number Diff line number Diff line change 10
10
{{ page.sidebar | capitalize | replace: "_", " " }} menu < i title ="navbar-toggler " class ="fa fa-bars ms-2 "> </ i >
11
11
</ button >
12
12
< nav class ="collapse " id ="side-nav " aria-label ="Side navigation ">
13
- < ul id ="menu " class ="list-unstyled mb-4 mb-lg-0 ">
14
- {%- if sidebar.title or sidebar.version %}
15
- {%- if sidebar.title_url and page.url == sidebar.title_url %}
16
- < li class ="sidebar-title active ">
17
- {%- else %}
18
- < li class ="sidebar-title ">
19
- {%- endif %}
20
- {%- if sidebar.title_url %}
21
- < a class ="btn active hover-primary text-start d-block mb-1 " href ="{{ sidebar.title_url | relative_url }} "> {{sidebar.title}} {{sidebar.version}}</ a >
22
- {%- else %}
23
- < a class ="btn active hover-primary text-start d-block mb-1 disabled " aria-disabled ="true "> {{sidebar.title}} {{sidebar.version}}</ a >
24
- {%- endif %}
25
- </ li >
26
- {%- endif %}
13
+ {%- if sidebar.title or sidebar.version %}
14
+ {%- if sidebar.title_url %}
15
+ {%- if page.url == sidebar.title_url %}
16
+ < a class ="btn hover-primary text-start d-block mb-1 sidebar-title active " href ="{{ sidebar.title_url | relative_url }} "> {{sidebar.title}} {{sidebar.version}}</ a >
17
+ {%- else %}
18
+ < a class ="btn hover-primary text-start d-block mb-1 sidebar-title " href ="{{ sidebar.title_url | relative_url }} "> {{sidebar.title}} {{sidebar.version}}</ a >
19
+ {%- endif %}
20
+ {%- else %}
21
+ < a class ="btn text-start d-block mb-1 sidebar-title disabled " aria-disabled ="true "> {{sidebar.title}} {{sidebar.version}}</ a >
22
+ {%- endif %}
23
+ {%- endif %}
24
+ < ul class ="list-unstyled mb-4 mb-lg-0 ">
27
25
{%- for folder in sidebar.subitems %}
28
26
{%- if page.url == folder.url %}
29
27
< li class ="active{%- if folder.hr %} mt-3{% endif %} ">
Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ header .navbar {
271
271
background-color : $sidebar-bg-active ;
272
272
}
273
273
274
- ul #menu {
274
+ #side-nav > ul {
275
275
> li :not (.sidebar-title ) > a {
276
276
background-color : $sidebar-bg ;
277
277
color : $sidebar-color ;
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ $(document).ready(function external_new_window() {
31
31
*/
32
32
$ ( document ) . ready ( function ( ) {
33
33
// Initialize navgoco with default options
34
- $ ( "#menu " ) . navgoco ( {
34
+ $ ( "#side-nav>ul " ) . navgoco ( {
35
35
caretHtml : '' ,
36
36
accordion : true ,
37
37
openClass : 'active' , // open
You can’t perform that action at this time.
0 commit comments