{{ $paginator := $.Paginator }} {{ $adjacent_links := 2 }} {{ $max_links := (add (mul $adjacent_links 2) 1) }} {{ $lower_limit := (add $adjacent_links 1) }} {{ $upper_limit := (sub $paginator.TotalPages $adjacent_links) }} {{ if gt $paginator.TotalPages 1 }}
{{ end }}