A new Siteleaf is here, upgrade to v2 →

Siteleaf

Menu

Nested menu

<ul>
  {% for page in site.pages %}
  <li>
    <a href="{{page.url}}"{% if page.url == url %} class="is-current-page"{% endif %}>{{page.title}}</a>
    {% if page.pages.size > 0 %}
    <ul>
      {% for subpage in page.pages %}
        <li>
          <a href="{{subpage.url}}"{% if subpage.url == url %} class="is-current-page"{% endif %}>{{subpage.title}}</a>
        </li>
      {% endfor %}
    </ul>
    {% endif %}
  </li>
  {% endfor %}
</ul>