{{ if or .Prev .Next -}} {{ $pages := where .Site.RegularPages "Section" .Section -}}
{{ with $pages.Next . -}} {{ end -}} {{ with $pages.Prev . -}} {{ end -}}
{{ end -}}