-
Notifications
You must be signed in to change notification settings - Fork 1
/
_nav.html
69 lines (65 loc) · 3 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
<nav id="top-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">
{# The actual main navbar elements #}
<ul class="nav navbar-nav">
{% for section in sections %}
<li>
<a href="{{ nav_prefix }}#{{ section.id }}">
{{ section.title }}
</a>
<ul class="subnav">
{% for slide in slides %}
{% if slide.section_id == section.id and slide.in_nav %}
<li class="{{ 'active' if slide.id == slides[0].id }}"><a class="slide-circle" title="{{ slide.title }}" href="{{ nav_prefix }}#{{ slide.id }}"><span>{{ slide.title }}</span></a></li>
{% endif %}
{% endfor %}
</ul>
</li>
{% endfor %}
<li><a href="about.html">About</a></li>
</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 %}
{% if opengraph_description and opengraph_image %}
<li>
<a target="_blank" href="http://pinterest.com/pin/create/button/?url={{ ROOT_URL }}/{{ PATH }}&media={{ opengraph_image }}&description={{ opengraph_description|urlencode }}" class="pin-it-button" count-layout="horizontal">
<i class="icon-white icon-pinterest-sign"></i> <span class="hidden">Pinterest</span>
</a>
</li>
{% endif %}
</ul>
</div>{# /.navbar-collapse #}
</div>
</nav>