forked from chrisanthropic/slim-pickins-jekyll-theme
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnavigation.html
48 lines (46 loc) · 1.61 KB
/
navigation.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
<nav class="navbar">
<nav class="row">
<div id="nav">
<ul class="columns left primary-nav">
<li id="toggleMenu"><a href="#nav">Menu</a></li>
<li id="hideMenu"><a href="#toggleMenu">Menu</a></li>
{% for nav in site.data.nav %}
{% if nav.subcategories != null %}
<li class="dropdown">
{% if nav.href != null %}
<a href="{{ site.github.url }}{{ nav.href }}">{{ nav.title }}</a>
{% else %}
<a href="{{ site.github.url }}{{ nav.url }}">{{ nav.title }}</a>
{% endif %}
<ul>
{% for subcategory in nav.subcategories %}
<li><a href="{{ site.github.url }}{{ subcategory.subhref }}">{{ subcategory.subtitle }}</a></li>
{% endfor %}
</ul>
</li>
{% elsif nav.external-subcategories != null %}
<li class="dropdown">
<a href="{{ site.url }}{{ nav.url }}">{{ nav.title }}</a>
<ul>
{% for subcategory in nav.external-subcategories %}
<li><a href="{{ subcategory.subhref }}">{{ subcategory.subtitle }}</a></li>
{% endfor %}
</ul>
</li>
{% elsif nav.title == page.title %}
<li class="active"><a href="{{ nav.href }}">{{ nav.title }}</a></li>
{% else %}
{% if nav.href %}
<li><a href="{{ site.github.url }}{{ nav.href }}">{{ nav.title }}</a></li>
{% elsif nav.external %}
<li><a href="{{ nav.external }}">{{ nav.title }}</a></li>
{% endif %}
{% endif %}
{% endfor %}
{% for socials in site.data.socials %}
<li><a href="{{ socials.href }}"><span class="icon-{{ socials.title }}" style="vertical-align:baseline"></span></a></li>
{% endfor %}
</ul>
</div>
</nav>
</nav>