Skip to content

Instantly share code, notes, and snippets.

View tekhaus's full-sized avatar

Brad Hover tekhaus

View GitHub Profile
@tekhaus
tekhaus / _recursive_nav.html
Created October 15, 2016 08:30
Multilevel navigation menus for NationBuilder
{% 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>