diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 1728ae5f7..5984a7572 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -33,8 +33,10 @@ {{ partial "sidebar/nested-menu" (dict "page" $currentPage "menu" $mainMenu) . }} -

Reference

- {{ partial "sidebar/nested-menu" (dict "page" $currentPage "menu" $refMenu) . }} + {{ if gt (len $refMenu) 0 }} +

Reference

+ {{ partial "sidebar/nested-menu" (dict "page" $currentPage "menu" $refMenu) . }} + {{ end }}