Join left and right navbar links into the center

This commit is contained in:
Vassili Minaev 2026-05-05 18:38:50 -06:00
parent 25118c683b
commit 5cbe87e6bf

View file

@ -52,19 +52,10 @@
{% endif %} {% endif %}
{% endmacro %} {% endmacro %}
{% if top_bar_items -%} <ul class="mx-auto navbar-nav">
<ul class="mr-auto navbar-nav">
{%- for item in top_bar_items -%}
{% if not item.parent_label and not item.right -%}
{{ render_item(item, parent=True) }}
{%- endif -%}
{%- endfor %}
</ul>
{%- endif %}
<ul class="ml-auto navbar-nav">
{% include "templates/includes/navbar/navbar_search.html" %} {% include "templates/includes/navbar/navbar_search.html" %}
{%- for item in top_bar_items -%} {%- for item in top_bar_items -%}
{% if not item.parent_label and item.right -%} {% if not item.parent_label -%}
{{ render_item(item, parent=True) }} {{ render_item(item, parent=True) }}
{%- endif -%} {%- endif -%}
{%- endfor %} {%- endfor %}
@ -98,9 +89,12 @@
</div> </div>
{% endif %} {% endif %}
{% include "templates/includes/navbar/navbar_login.html" %}
</ul> </ul>
<ul class="navbar-nav">
{% include "templates/includes/navbar/navbar_login.html" %}
</ul>
{%- if call_to_action -%} {%- if call_to_action -%}
<a class="btn btn-primary navbar-cta" href="{{ call_to_action_url | abs_url }}"> <a class="btn btn-primary navbar-cta" href="{{ call_to_action_url | abs_url }}">
{{ call_to_action }} {{ call_to_action }}