Skip to content

Instantly share code, notes, and snippets.

Avatar

Brad Hover tekhaus

View GitHub Profile
@tekhaus
tekhaus / _recursive_nav.html
Created Oct 15, 2016
Multilevel navigation menus for NationBuilder
View _recursive_nav.html
{% comment %}
<!-- This partial calls itself recursively if there is more than one level of navigation -->
{% endcomment %}
{% if page.leaf? or page.nav_children.size == 0 %}
<li>
<a href="{{ page.slug }}">{{ page.name }}</a>
</li>
{% else %}
<li>