made reference menu conditional

pull/1387/head
Scott Anderson 2020-07-29 15:11:55 -06:00
parent 99be367326
commit 17e420c1e5
1 changed files with 4 additions and 2 deletions

View File

@ -33,8 +33,10 @@
{{ partial "sidebar/nested-menu" (dict "page" $currentPage "menu" $mainMenu) . }}
<!-- Reference Section -->
<h4 class="reference">Reference</h4>
{{ partial "sidebar/nested-menu" (dict "page" $currentPage "menu" $refMenu) . }}
{{ if gt (len $refMenu) 0 }}
<h4 class="reference">Reference</h4>
{{ partial "sidebar/nested-menu" (dict "page" $currentPage "menu" $refMenu) . }}
{{ end }}
</ul>
</aside>