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