Skip to content
Snippets Groups Projects
Unverified Commit 662eb079 authored by Alexis BENOIT's avatar Alexis BENOIT Committed by GitHub
Browse files

Merge pull request #256 from noesya/fix-empty-menu

Fix empty menu
parents b5acd349 099d1dc5
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