{% macro render_header() %} {% set root_section = get_section(path="_index.md") %} {% set active_section = "" %} {% if page and page.components %} {% set active_section = page.components[0] %} {% elif section and section.components %} {% set active_section = section.components[0] %} {% endif %} {% endmacro render_header %}