{{- $page := .page }} {{- $menuID := .menuID }} {{- with index site.Menus $menuID }} {{- partial "inline/menu/walk.html" (dict "page" $page "menuEntries" .) }} {{- end }} {{- define "partials/inline/menu/walk.html" }} {{- $page := .page }} {{- range .menuEntries }} {{ if .Params.nonpage }}