Some cleaning

This commit is contained in:
Giuseppe Pignataro 2019-03-15 15:14:53 +01:00
parent abb2a12e5d
commit 7c6bb066f7

View file

@ -2,17 +2,8 @@
{{ if gt $pag.TotalPages 1 }}
<ul class="pagination">
{{ with $pag.First }}
<!-- <li class="page-item {{ if not $pag.HasPrev }}disabled{{ end }}">
<span class="page-link">
<a href="{{ .URL }}" aria-label="First"><span aria-hidden="true">&laquo;&laquo;</span></a>
</span>
</li> -->
{{ end }}
<!-- <li class="page-item {{ if not $pag.HasPrev }}disabled{{ end }}">
<span class="page-link">
<a href="{{ if $pag.HasPrev }}{{ $pag.Prev.URL }}{{ end }}" aria-label="Previous"><span aria-hidden="true">&laquo;</span></a>
</span>
</li> -->
{{ $.Scratch.Set "__paginator.ellipsed" false }}
{{ range $pag.Pagers }}
{{ $right := sub .TotalPages .PageNumber }}
@ -34,17 +25,5 @@
<li class="page-item "><span class="page-link" aria-hidden="true">&hellip;</span></li>
{{ end }}
{{ end }}
<!-- <li class="page-item {{ if not $pag.HasNext }}disabled{{ end }}">
<span class="page-link">
<a href="{{ if $pag.HasNext }}{{ $pag.Next.URL }}{{ end }}" aria-label="Next"><span aria-hidden="true">&raquo;</span></a>
</span>
</li> -->
<!-- {{ with $pag.Last }}
<li class="page-item {{ if not $pag.HasNext }}disabled{{ end }}">
<span class="page-link">
<a href="{{ .URL }}" aria-label="Last"><span aria-hidden="true">&raquo;&raquo;</span></a>
</span>
</li>
{{ end }} -->
</ul>
{{ end }}