{{ $paginator := .Paginator }}
{{ if gt $paginator.TotalPages 1 }}

<ul class="pagination">
  <li class="pagination__item pagination__item--previous">
  {{ if $paginator.HasPrev }}<a href="{{ $paginator.Prev.URL }}" class="pagination__link pagination__link--previous">{{end}}NEWER{{ if $paginator.HasPrev }}</a>{{end}}
  </li>
  <li>{{ $paginator.PageNumber }} of {{ $paginator.TotalPages }}</li>
<li class="pagination__item pagination__item--next">
{{ if $paginator.HasNext }}<a href="{{ $paginator.Next.URL }}" class="pagination__link pagination__link--next">{{end}}OLDER{{ if $paginator.HasNext }}</a>{{end}}
</li>
</ul>
{{ end }}