From 76b07ad361216ff58529d4d527c5852a92c37d1b Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Mon, 12 Dec 2022 18:14:41 +0100 Subject: [PATCH] no useless check --- layouts/partials/header/header.html | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/layouts/partials/header/header.html b/layouts/partials/header/header.html index e2d0c620..fee3fcf9 100644 --- a/layouts/partials/header/header.html +++ b/layouts/partials/header/header.html @@ -4,17 +4,15 @@ <div class="container"> {{ partial "header/logo.html" }} {{ $menu := partial "GetMenu" "primary" }} - {{ if $menu }} - {{ partial "header/button.html" }} - <div class="menu" id="navigation"> - {{ partial "commons/menu.html" - (dict - "kind" "primary" - "dropdown" true - "level" 1 - ) }} - </div> - {{ end }} + {{ partial "header/button.html" }} + <div class="menu" id="navigation"> + {{ partial "commons/menu.html" + (dict + "kind" "primary" + "dropdown" true + "level" 1 + ) }} + </div> </div> </nav> </header> -- GitLab