{% comment %} The nav-tree variable has been defined in the include that called this file. To include child items in that tree, this file includes itself, defining nav-tree as the children of the nav-tree it received originally. Turtles all the way down, at least as deep as the nav tree in meta.yml goes. Credit to Christian Specht for the inspiration: https://christianspecht.de/2014/06/18/building-a-pseudo-dynamic-tree-menu-with-jekyll/ {% endcomment %}
    {% for item in include.nav-tree | sort: "order" %}
  1. {{ item.label }}
  2. {% if item.children != nil %} {% include nav-list nav-tree=item.children %} {% endif %} {% endfor %}