{% from "../macros/buttons.html" import render_funcs with context %}
{%- for button in header_buttons -%} {% set btype = button.get("type") %} {% set bopts = button.copy() %} {% set _ = bopts.pop("type") %} {{ render_funcs[btype](**bopts) }} {%- endfor -%} {#- Extra theme buttons #} {% include "theme-switcher.html" %} {% include "search-button.html" %} {% include "explorer-button.html" %} {% include "toggle-secondary-sidebar.html" %}