{# Nav -- These macros are designed for building the primary navigation and user navigation. By default, the prime nav is generated by the nav system in the python. It is strongly recommended that any navigation links are added/removed using python, however if required, you can overide the prime navigation in your local template like so: -------------------------------------------------------------------------------- {%- import "macros/nav.html" as _nav -%} {% block prime_nav -%} {% macro prime_nav_list() %}
... {% endmacro %} {{ _nav.prime_nav(prime_nav_list()) }} {%- endblock %} -------------------------------------------------------------------------------- Taking this approach allows you to retain the prime nav container formatting but overwrite the inner list of nav items/links. The user nav component is very similar to the prime nav component in it's HTML/CSS construction but is not generated using python. By default, the user's name, the update profile link and the sign out link are added, as these are standard behaviour in any CMS, however, if required, you can overwrite these links like so: -------------------------------------------------------------------------------- {% block user_nav -%} {% macro user_nav_list() %} ... {% endmacro %} {{ _nav.user_nav(user_nav_list()) }} {%- endblock %} -------------------------------------------------------------------------------- #} {# Prime nav -- The containing element for the `prime_nav` component. Must be passed `list` as a mixin which should contain the list of links in for the navigation. #} {% macro prime_nav(list) -%}