
					{{end}}
				{{end}}
				{{ if lt $.count $.depth}}

					{{if eq $.style "li"}}
<ul>
					{{end}}

					{{ if .Sections}}
						{{ .Scratch.Set "pages" (.Pages | union .Sections) }}
					{{else}}
						{{ .Scratch.Set "pages" .Pages }}
					{{end}}

					{{ $pages := (.Scratch.Get "pages") }}
					{{ $newdepth := (sub (int $.startdepth) 1) }}

					{{if eq $.sortTerm "Weight"}}
						{{template "childs" dict "menu" $pages.ByWeight  "style" $.style "showhidden" $.showhidden "count" (add $.count 1) "dep