mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-22 06:46:29 +01:00
Some cleaning
This commit is contained in:
parent
abb2a12e5d
commit
7c6bb066f7
1 changed files with 1 additions and 22 deletions
|
@ -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">««</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">«</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">…</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">»</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">»»</span></a>
|
||||
</span>
|
||||
</li>
|
||||
{{ end }} -->
|
||||
</ul>
|
||||
{{ end }}
|
Loading…
Reference in a new issue