{{- $page := .page }} {{- $item := .item }} {{- $pageItem := $page.GetPage $item.URL }} {{- if $pageItem.Params.menu_item_override }} {{- if $pageItem.Params.menu_item_override_start_li }}
  • {{- end}} {{$item.Pre}}{{ $pageItem.Params.menu_item_override }}{{- partial "menu/new-or-up.html" (dict "page" $pageItem) }}{{$item.Post}} {{- if $pageItem.Params.menu_item_override_end_li }}
  • {{- end}} {{- else}}
  • {{- if $item.Params.nonpage }} {{ $item.Pre}} {{$item.Name }} {{ $item.Post }} {{- else if $item.Params.placeholder }} {{ $item.Pre }}{{$item.Name }}{{ $item.Post }} {{- else}} {{$item.Pre}} {{ $item.Name }} {{- partial "menu/new-or-up.html" (dict "page" $pageItem) }} {{ $item.Post }} {{- end}} {{- if $item.Params.inlineChildren}} {{- with $item.Children }} - {{- partial "inline/menu/inline.html" (dict "page" $page "menuEntries" .) }} {{- end}} {{- else}} {{- with $item.Children }} {{- end }} {{- end}}
  • {{- end}}