{{ $page := .Page }} {{ with .Next }} {{ if eq .FirstSection $page.FirstSection }} ←Previous page:
{{.Title}}
{{ end }} {{ end }} {{ with .Prev }} {{ if eq .FirstSection $page.FirstSection }} Next page:
{{.Title}}
→
{{ end }} {{ end }}