Skip to content
Snippets Groups Projects
Commit 099d1dc5 authored by alexisben's avatar alexisben
Browse files

check items menu presence

parent b5acd349
No related branches found
Tags v3.0.5
No related merge requests found
{{ $context := . }}
{{ $primary := partial "GetMenu" "primary" }}
<header id="document-header">
<nav aria-label="{{ i18n "commons.menu.main" }}">
<div class="container">
{{ partial "header/logo.html" }}
{{ partial "header/button.html" }}
<div class="menu" id="navigation">
{{ partial "commons/menu.html"
(dict
"kind" "primary"
"dropdown" true
"level" 1
"context" .
) }}
</div>
{{ if $primary.items }}
{{ partial "header/button.html" }}
<div class="menu" id="navigation">
{{ partial "commons/menu.html"
(dict
"kind" "primary"
"dropdown" true
"level" 1
"context" .
) }}
</div>
{{ end }}
</div>
</nav>
</header>
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