{{- /* section-menu.html with edition (Open Source / Pro) toggle */ -}} {{- $sidebar := printf "sidebar_%s" .Section -}} {{- $nodes := slice -}} {{- /* Get nodes from menu or section */ -}} {{- with index site.Menus $sidebar }} {{- $nodes = . -}} {{- else }} {{- with (.Site.GetPage "section" .Section).Sections }} {{- $nodes = . -}} {{- end }} {{- end }}