-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path_nav.html
45 lines (43 loc) · 2.07 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
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
{# Brand and toggle get grouped for better mobile display #}
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<p class='navbar-toggle-header'>stages <i class="fa fa-1x fa-chevron-down"></i></p>
</button>
<a class="navbar-brand" href="./"><span class="nav1">Crime & </span>Punishment</a>
</div>
{# Collect the nav links, forms, and other content for toggling #}
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="sections nav navbar-nav">
{% for item in nav %}
<li><a href="{{ item.path }}" class="{{ item.title }} {% if PATH == item.path %}active{% endif %}">{{ item.title }}</a></li>
{% endfor %}
</ul>
<ul class="social-menu nav navbar-nav navbar-right">
{% if opengraph_description and opengraph_image %}
<li>
<a target="_blank" href="https://www.facebook.com/sharer.php?u={{ ROOT_URL }}/{{ PATH }}&t={{ title|urlencode }}">
<i class="icon-white icon-facebook-sign"></i> <span class="hidden">Facebook</span>
</a>
</li>
{% endif %}
{% if twitter_description %}
<li>
<a target="_blank" href="https://twitter.com/share?url={{ ROOT_URL }}/{{ PATH }}&text={{ twitter_description|urlencode }}">
<i class="icon-white icon-twitter-sign"></i> <span class="hidden">Twitter</span>
</a>
</li>
{% endif %}
{% if opengraph_description and opengraph_image %}
<li>
<a target="_blank" href="https://plus.google.com/share?url={{ ROOT_URL }}/{{ PATH }}">
<i class="icon-white icon-google-plus-sign"></i> <span class="hidden">Google+</span>
</a>
</li>
{% endif %}
</ul>
</div>{# /.navbar-collapse #}
</div>
</nav>