      {%- if menu|length > 1 ~%}
      <nav>
        <ul>
          {%- for item in attribute(site.menus, menu)|sort_by_weight ~%}
          <li><a href="{{ url(item.url) }}">{{ item.name }}</a></li>
          {%- endfor ~%}
        </ul>
      </nav>
      {%- endif ~%}