{{- /* The page before and the page after: in its docs group order for a docs page, by title in its group for a concept or an element of the schema. */ -}} {{- $list := slice -}} {{- if or .Params.conceptId .Params.schemaName -}} {{- $list = .Parent.RegularPages.ByTitle -}} {{- else if .Params.docName -}} {{- range (partialCached "docs-groups.html" "docs").list }}{{ range .pages }}{{ $list = $list | append . }}{{ end }}{{ end -}} {{- end -}} {{- $at := -1 -}} {{- range $i, $p := $list }}{{ if eq $p.Path $.Path }}{{ $at = $i }}{{ end }}{{ end -}} {{- if ge $at 0 }} {{- end }}