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
25 lines (21 loc) · 833 Bytes
/
navigation.html
File metadata and controls
25 lines (21 loc) · 833 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
<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 %}
<li><a target="_blank" href="https://github.com/wp-cli/wp-cli/wiki">Wiki</a></li>
<li class="align-right">
<a href="https://github.com/wp-cli/wp-cli" class="btn-source rounded" target="_blank"><i class="icon-github-circled"></i></a>
</li>
<li class="align-right">
<a href="https://twitter.com/wpcli" class="btn-twitter rounded" target="_blank"><i class="icon-twitter"></i></a>
</li>
</ul>
</nav>