{{ $currentPage := . -}} {{ $section := $currentPage.Section -}} {{ range (index .Site.Menus $section) -}}