-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnav.html
executable file
·79 lines (74 loc) · 3.38 KB
/
nav.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<div class="navbar navbar-default navbar-fixed-top"
role="navigation">
<div class="container">
<!-- Collapsed navigation -->
<div class="navbar-header">
<!-- Expander button -->
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- Main title -->
<a class="navbar-brand" href="{{ homepage_url }}">{{ site_name }}</a>
</div>
<!-- Expanded navigation -->
<div class="navbar-collapse collapse">
<!-- Main navigation -->
<ul class="nav navbar-nav">
{% for nav_item in nav.nav_items[0].children %}
{% if nav_item.children %}
<li class="dropdown{% if nav_item.active %} active{% endif %}">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ nav_item.title }} <b
class="caret"></b></a>
<ul class="dropdown-menu">
{% for nav_item in nav_item.children %}
{% include "nav-sub.html" %}
{% endfor %}
</ul>
</li>
{% else %}
<li {% if nav_item.active %}class="active"{% endif %}>
<a href="{{ nav_item.url }}">{{ nav_item.title }}</a>
</li>
{% endif %}
{% endfor %}
</ul>
<!-- Search, Navigation and Repo links -->
<ul class="nav navbar-nav navbar-right">
<li>
<a href="#" data-toggle="modal" data-target="#mkdocs_search_modal">
<i class="fa fa-search"></i> Search Docs
</a>
</li>
{% if repo_url %}
<li>
<a href="{{ repo_url }}" target="_blank">
{% if repo_name == 'GitHub' %}
<i class="fa fa-github"></i> Contribute on GitHub
{% elif repo_name == 'Bitbucket' %}
<i class="fa fa-bitbucket"></i>
{% endif %}
</a>
</li>
{% endif %}
<li class="dropdown">
<button class="btn dropdown-toggle btn-danger btn-version" data-toggle="dropdown">
{{ nav.nav_items[0].title }}
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
{% for nav_item in nav %}
<li role="presentation">
<a role="menuitem" tabindex="-1" href="{{ nav_item.url }}">
{{ nav_item.title }}
</a>
</li>
{% endfor %}
</ul>
</li>
</ul>
</div>
</div>
</div>