This should work, right? {{ if .Paginator.HasPrev }} prev {{ else }} prev {{ end }} {{ if .Paginator.HasNext }} next {{ else }} next {{ end }}