Skip to content

Instantly share code, notes, and snippets.

@david50407
Created February 9, 2013 15:07
Show Gist options
  • Save david50407/4745629 to your computer and use it in GitHub Desktop.
Save david50407/4745629 to your computer and use it in GitHub Desktop.
<div class="navbar-wrapper">
<div class="container">
<div class="navbar navbar-inverse">
<div class="navbar-inner">
<a class="brand" href="/"> Chewing </a>
<ul class="nav">
{% for item in site.navigation %}
{% assign active = nil %}
{% if page.class == item.class %}
{% assign active = ' class="active"' %}
{% endif %}
<li{{ active }}><a href="{{ item.url }}">{{ item.text }}</a></li>
{% endfor %}
</ul>
</div>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment