You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.1KB

  1. {% extends "index.html" %}
  2. {% block extra_nav_class %}{% endblock extra_nav_class %}
  3. {% block extra_content_class %}content--reversed{% endblock extra_content_class %}
  4. {% block content %}
  5. {% set section = get_section(path="documentation/_index.md") %}
  6. <div class="documentation">
  7. <aside class="documentation__sidebar">
  8. <ul>
  9. {% for p in section.subsections %}
  10. {% set subsection = get_section(path=p) %}
  11. <li>
  12. <span class="documentation__sidebar__title">{{ subsection.title }}</span>
  13. <ul>
  14. {% for page in subsection.pages %}
  15. <li class="{% if current_path == page.path %}active{% endif %}">
  16. <a href="{{page.permalink}}">{{page.title}}</a>
  17. </li>
  18. {% endfor %}
  19. </ul>
  20. </li>
  21. {% endfor %}
  22. </ul>
  23. </aside>
  24. <div class="documentation__content">
  25. {% block doc_content %}
  26. {% endblock doc_content %}
  27. </div>
  28. </div>
  29. {% endblock content %}