{{ $pag := $.Paginator }}
{{ if gt $pag.TotalPages 1 -}}

  <div class="row flex-center margin-top-large">
 
  {{ with $pag.First -}}
    <a href="{{ .URL }}" class="paper-btn">&laquo;&laquo;</a>
  {{ end -}}
    <a {{ if $pag.HasPrev }}href="{{ $pag.Prev.URL }}"{{ end }} class="paper-btn{{ if not $pag.HasPrev }} disabled{{ end }}">&laquo;</a>
  {{- $ellipsed := false -}}
  {{- $shouldEllipse := false -}}
  {{- range $pag.Pagers -}}
  {{- $right := sub .TotalPages .PageNumber -}}
  {{- $showNumber := or (le