{% set toctree = toctree(maxdepth=theme_globaltoc_depth|int, includehidden=True) %} {% if toctree %} {{ toctree }} {% else %}
{{ toc }}
{% endif %}