{% for nav in __g.NAV_MENU %}
{% set nav_name = nav[1] %}
{% set nav_items = nav[2] %}
{% set nav_kwargs = nav[3] %}
{% set is_group = nav_kwargs["kwargs"]%}
{% if groups %}
{% if nav_kwargs["group"] in groups %}
{{ nav_list_content(nav_name,
nav_items,
nav_kwargs,
allow_pull=allow_pull,
align_right=align_right) }}
{% endif %}
{% elif exclude_groups %}
{% if nav_kwargs["group"] not in exclude_groups %}
{{ nav_list_content(nav_name,
nav_items,
nav_kwargs,
allow_pull=allow_pull,
align_right=align_right) }}
{% endif %}
{% else %}
{{ nav_list_content(nav_name,
nav_items,
nav_kwargs,
allow_pull=allow_pull,
align_right=align_right) }}
{% endif %}
{% endfor %}
{% endmacro %}
{#
To a create navbar
:brand: The brand of the site, can include anything
:brand_url: The url when the brand is clicked on
:fluid: If true it will expand menu all across
:fixed: If true it will place the menu on top in a fixed position
:fixed_padding_top: When fixed, specify the top padding in px
:menu_id: if there are more that one menu, to make them unique
:groups: (list) - list of menu groups to accept
:exclude_groups: (list) - list of menu groups to exclude
#}
{% macro navbar(brand="",
brand_url="#",
fluid=True,
fixed=True,
fixed_padding_top="70px",
menu_id=1,
groups=[],
exclude_groups=[]) %}
{% if fixed %}
{% endif %}
{% endmacro %}