made reference menu conditional
parent
99be367326
commit
17e420c1e5
|
@ -33,8 +33,10 @@
|
||||||
{{ partial "sidebar/nested-menu" (dict "page" $currentPage "menu" $mainMenu) . }}
|
{{ partial "sidebar/nested-menu" (dict "page" $currentPage "menu" $mainMenu) . }}
|
||||||
|
|
||||||
<!-- Reference Section -->
|
<!-- Reference Section -->
|
||||||
<h4 class="reference">Reference</h4>
|
{{ if gt (len $refMenu) 0 }}
|
||||||
{{ partial "sidebar/nested-menu" (dict "page" $currentPage "menu" $refMenu) . }}
|
<h4 class="reference">Reference</h4>
|
||||||
|
{{ partial "sidebar/nested-menu" (dict "page" $currentPage "menu" $refMenu) . }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</aside>
|
</aside>
|
||||||
|
|
Loading…
Reference in New Issue