forked from sc3/crime-punishment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_nav.html
47 lines (45 loc) · 2.08 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
<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>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="./">{{ title }}</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="{% if PATH == item.path %}active{% endif %}"><span class="circle">{{ loop.index }}</span> {{ 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>