forked from wp-cli/wp-cli.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnavigation.html
More file actions
27 lines (24 loc) · 753 Bytes
/
navigation.html
File metadata and controls
27 lines (24 loc) · 753 Bytes
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
<nav class="main-nav">
<ul>
{% capture page_url %}{{ page.url | remove:'index.html' }}{% endcapture %}
{% for link in site.navigation %}
{% capture current %}{% assign current = nil %}{% endcapture %}
{% if page_url == link.url or page.layout == link.layout %}
{% assign current = 'class="active"' %}
{% endif %}
<li {{ current }}>
<a href="{{ link.url }}">{{ link.text }}</a>
</li>
{% endfor %}
</ul>
</nav>
<nav class="social-nav">
<ul>
<li>
<a href="https://github.com/wp-cli/wp-cli" class="btn-source rounded" target="_blank"><i class="icon-github-circled"></i></a>
</li>
<li>
<a href="https://twitter.com/wpcli" class="btn-twitter rounded" target="_blank"><i class="icon-twitter"></i></a>
</li>
</ul>
</nav>