Skip to content
Snippets Groups Projects
Commit a0673083 authored by Chris Lawton's avatar Chris Lawton
Browse files

remove subnav markup from primary nav template as it's not requried

parent c0af51bd
No related branches found
No related tags found
No related merge requests found
...@@ -2,18 +2,7 @@ ...@@ -2,18 +2,7 @@
<nav role="navigation" aria-label="Primary"> <nav role="navigation" aria-label="Primary">
<ul class="nav nav--primary" role="menubar"> <ul class="nav nav--primary" role="menubar">
{% for link in primarynav %} {% for link in primarynav %}
{% with children=link.value.page.get_children.live.public.in_menu %} {% include_block link with class="primary" %}
{% include_block link with has_children=children.exists class="primary" %}
{% if children.exists %}
<ul class="nav nav--subnav" role="menu">
<li class="nav__item nav__item--back js-subnav-back">&lsaquo; Back</li>
{% include_block link %}
{% for child in children.all %}
{% include "navigation/includes/menu_item.html" with page=child class="secondary" %}
{% endfor %}
</ul>
{% endif %}
{% endwith %}
{% endfor %} {% endfor %}
</ul> </ul>
</nav> </nav>
...@@ -22,4 +11,3 @@ ...@@ -22,4 +11,3 @@
Log in Log in
</a> </a>
<a href="#" class="link link--button-secondary link--mobile-standout">Apply</a> <a href="#" class="link link--button-secondary link--mobile-standout">Apply</a>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment