{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }} {{ $paginator := .Paginator }} {{ end }}