{% set page_toc = generate_toc_html() %} {%- if not hide_toc and page_toc | length >= 1 %}
{% if theme_toc_title %}
{{ theme_toc_title }}
{% endif %} {{ page_toc }}
{% endif %}