File tree 2 files changed +13
-28
lines changed
2 files changed +13
-28
lines changed Original file line number Diff line number Diff line change 1
1
head :
2
2
- title : Install
3
3
url : /install
4
- - About Us
4
+ - title : About Us
5
+ url : /about
5
6
- title : Get Involved
6
7
url : /community
7
8
- title : Events
8
9
url : /events
9
- - Documentation
10
- - Widgets
10
+ - title : Documentation
11
+ url : /documentation
12
+ - title : Widgets
13
+ url : /widgets
11
14
- title : News
12
15
url : https://blog.jupyter.org
13
16
newpage : true
Original file line number Diff line number Diff line change 24
24
< div class ="collapse navbar-collapse " id ="bs-example-navbar-collapse-1 ">
25
25
< ul class ="nav navbar-nav navbar-right ">
26
26
{%- for nav in site.data.nav.head -%}
27
- {%- if nav.url %}
28
- < li >
29
- {%- if nav.newpage %}
30
- < a href ="{{site.baseurl}}{{nav.url}} " class ="tab " target ="_blank " rel ="noopener noreferrer "> {{nav.title}}</ a >
31
- {%- else %}
32
- < a href ="{{site.baseurl}}{{nav.url}} " class ="tab "> {{nav.title}}</ a >
33
- {%- endif %}
34
- </ li >
35
- {%- else -%}
36
- {%- for targetpage in site.pages %}
37
- {%- if nav contains targetpage.title -%}
38
- {%- if page.title == targetpage.title %}
39
- < li >
40
- < a href ="{{site.baseurl}}{{targetpage.url}} " class ="tab navbar-active "> {{targetpage.title}}</ a >
41
- </ li >
42
- {%- else %}
43
- < li >
44
- < a href ="{{site.baseurl}}{{targetpage.url}} " class ="tab "> {{targetpage.title}}</ a >
45
- </ li >
46
- {%- endif -%}
47
- {%- endif -%}
48
- {%- endfor -%}
49
- {%- endif -%}
27
+ < li >
28
+ < a href ="{{nav.url}} "
29
+ {%- if nav.newpage %}target ="_blank " rel ="noopener noreferrer "{% endif %}
30
+ class ="tab {% if nav.url == page.url %}navbar-active{% endif %} ">
31
+ {{nav.title}}
32
+ </ a >
33
+ </ li >
50
34
{%- endfor %}
51
35
</ ul >
52
36
</ div >
53
- <!-- /.navbar-collapse -->
54
37
</ div >
55
- <!-- /.container -->
56
38
</ div >
57
39
</ nav >
You can’t perform that action at this time.
0 commit comments