{# To trigger whether the TOC and its button show up #} {% set page_toc = generate_toc_html() %} {% from "../macros/buttons.html" import render_funcs, render_label_input_button with context %}
{% if theme_single_page != True %} {{ render_label_input_button(for_input="__navigation", tooltip="Toggle navigation", icon="fas fa-bars", tooltip_placement="right") }} {% endif %}
{%- for button in header_buttons -%} {{ render_funcs[button.pop("type")](**button) }} {%- endfor -%} {% if page_toc -%} {{ render_label_input_button("__page-toc", icon="fas fa-list", label="page-toc") }} {%- endif %}
{%- if page_toc | length >= 1 %}
{{ translate(theme_toc_title) }}
{%- endif %}