Delete prev and next pagination links
This commit is contained in:
parent
0ffed428af
commit
e84efd8613
1 changed files with 0 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
||||||
{{- $pag := $.Paginator }}
|
{{- $pag := $.Paginator }}
|
||||||
{{- if gt $pag.TotalPages 1 }}
|
{{- if gt $pag.TotalPages 1 }}
|
||||||
<div class="pagination block">
|
<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 }}
|
{{- $.Scratch.Set "__paginator.ellipsed" false }}
|
||||||
{{- range $pag.Pagers }}
|
{{- range $pag.Pagers }}
|
||||||
{{- $right := sub .TotalPages .PageNumber }}
|
{{- $right := sub .TotalPages .PageNumber }}
|
||||||
|
@ -20,6 +19,5 @@
|
||||||
<span class="pagination__item pagination__item--gap">…</span>
|
<span class="pagination__item pagination__item--gap">…</span>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if not $pag.HasNext }}{{ else }}<a class="pagination__item" href="{{ if $pag.HasNext }}{{ $pag.Next.URL }}{{ end }}">❱</a>{{ end }}
|
|
||||||
</div>
|
</div>
|
||||||
{{- end }}
|
{{- end }}
|
Loading…
Reference in a new issue