{# Navigation bar #} {% from "macros/link.html" import render_link %} {% macro render_nav(nav=none, config=none, baseurl="", colab="", global_nav=none, page_url="", page_navigation=none) %} {% if (nav is not none and nav != false) or (nav is none and global_nav is not none) %} {% set has_fixed = (nav is mapping and nav.fixed) or (global_nav is mapping and global_nav.fixed) %} {% set has_brand = (global_nav is mapping and global_nav.brand) %} {% if has_fixed or has_brand %} {% set links = nav.content | default(global_nav.content | default([])) if nav is mapping else global_nav.content | default([]) %} {% else %} {% set links = nav.content | default(global_nav.content | default(global_nav | default([]))) if nav is mapping else global_nav.content | default(global_nav | default([])) %} {% endif %} {% set search_config = config.search | default({}) if config else {} %} {% set has_search = search_config and search_config.ui | default(true) and (search_config.links or search_config.content) %} {% set has_links = links | length > 0 %} {# Search results container #} {% if has_search %} {{ render_search(baseurl) }} {% endif %} {% endif %} {% endmacro %} {% macro render_search(baseurl) %}
{% endmacro %}