{{ if or .Prev .Next -}}
{{ $pages := where site.RegularPages "Section" .Section -}} {{ $pages = ($pages.ByParam "Title").ByParam "Weight" -}} {{ with $pages.Next . -}}
← {{ .Title }}
{{ end -}} {{ with $pages.Prev . -}}
{{ .Title }} →
{{ end -}}
{{ end -}}