{{ range .sect.GroupBy "Weight" }}
{{ range .ByTitle }}
{{ if not .Params.GeekdocHidden }}
{{ $numberOfPages := (add (len .Pages) (len .Sections)) }}
{{ $isParent := and (ne $numberOfPages 0) (not .Params.GeekdocFlatSection) }}
{{ $isCurrent := eq $current . }}
{{ $isAncestor := .IsAncestor $current }}
{{ $id := substr (sha1 .Permalink) 0 8 }}
{{ if .Content }}
{{ if and $isParent .Params.GeekdocCollapseSection }}
{{ end }}
{{ end }}
{{ if $isParent }}
{{ template "tree-navx" dict "sect" .Pages "current" $current}}
{{ end }}