sidebar.html 427 B

1234567891011121314
  1. {% for parent in include.items %}
  2. <li{% if page.url contains parent.url %} class="active"{% endif %}>
  3. <a href="{{ parent.url }}">{{ parent.title }}</a>
  4. {% if parent.children != null %}
  5. <ul>
  6. {% for child in parent.children %}
  7. <li{% if page.url contains child.url %} class="active"{% endif %}>
  8. <a href="{{ child.url }}">{{ child.title }}</a>
  9. </li>
  10. {% endfor %}
  11. </ul>
  12. {% endif %}
  13. </li>
  14. {% endfor %}