Delete prev and next pagination links

This commit is contained in:
vimux 2018-05-23 18:18:18 +03:00
parent 0ffed428af
commit e84efd8613
No known key found for this signature in database
GPG key ID: 5A34FDC4EE832E34

View file

@ -1,7 +1,6 @@
{{- $pag := $.Paginator }}
{{- if gt $pag.TotalPages 1 }}
<div class="pagination block">
{{- if not $pag.HasPrev }}{{ else}}<a class="pagination__item pagination__item-link" href="{{ if $pag.HasPrev }}{{ $pag.Prev.URL }}{{ end }}"></a>{{- end }}
{{- $.Scratch.Set "__paginator.ellipsed" false }}
{{- range $pag.Pagers }}
{{- $right := sub .TotalPages .PageNumber }}
@ -20,6 +19,5 @@
<span class="pagination__item pagination__item--gap">&hellip;</span>
{{- end }}
{{- end }}
{{- if not $pag.HasNext }}{{ else }}<a class="pagination__item" href="{{ if $pag.HasNext }}{{ $pag.Next.URL }}{{ end }}"></a>{{ end }}
</div>
{{- end }}