Skip to content

Instantly share code, notes, and snippets.

@matt-west
Created May 6, 2014 13:18
Show Gist options
  • Save matt-west/cef346185dde7eee8079 to your computer and use it in GitHub Desktop.
Save matt-west/cef346185dde7eee8079 to your computer and use it in GitHub Desktop.
Postach.io Categoires Nav Example
{% if site.tags %}
<nav class="categories">
<h4>Categories</h4>
<ul>
<li><a href="/tag/design" class="{{ set_active('/tag/design') }}">Design</a></li>
<li><a href="/tag/web" class="{{ set_active('/tag/web') }}">Web</a></li>
<li><a href="/tag/ios" class="{{ set_active('/tag/ios') }}">iOS</a></li>
<li><a href="/tag/android" class="{{ set_active('/tag/android') }}">Android</a></li>
</ul>
</nav>
<h4>Tags</h4>
<ul class="tags">
{% for tag in site.tags %}
<li><a href="/tag/{{ tag.name }}">#{{ tag.name }}</a></li>
{% endfor %}
</ul>
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment