page-children.html.twig 524 B

1234567891011
  1. <ul class="grav-menu">
  2. {% for page in pages.children %}
  3. <li class="{{ (admin.route and page.route == context.route) ? 'Selected' : '' }} {{ page.children.count > 0 ? 'hasChildren' : '' }}">
  4. <a href="{{ base_url_relative }}/pages/{{ page.route|trim('/') }}"><em class="status {{ page.visible ? 'visible' : '' }}"></em>{{ page.menu }}</a>
  5. {% if page.children.count > 0 %}
  6. {% include 'partials/page-children.html.twig' with {pages: page} %}
  7. {% endif %}
  8. </li>
  9. {% endfor %}
  10. </ul>