{{ with .NextInSection }} {{.Title}} {{ end }} {{ if .NextInSection }} {{ with .PrevInSection }} {{.Title}} {{ end }} {{ else }} {{ with .PrevInSection }} {{.Title}} {{ end }} {{ end }}