{% extends "book/templates/index.html" %} {% block extra_head %} {% endblock extra_head %} {% block before_menu %} {% endblock before_menu %} {% macro toc(headers, n) %} {% for header in headers %}
  • {{ header.title }} {% if header.children and n > 1 %} {% endif %}
  • {% endfor %} {% endmacro toc %} {% block menu %} {% set index = get_section(path="_index.md") %} {% for s in index.subsections %} {% set subsection = get_section(path=s) %}
  • {% set chapter_num = loop.index %} {% if config.extra.book_number_chapters %}{{ chapter_num }}.{% endif %} {% if subsection.draft %}🔨{% endif %} {{ subsection.title }} {% if subsection.pages %} {% endif %}
  • {% endfor %} {% endblock menu %}