Browse Source

swapping NEWER & OLDER in pagination

master
jk 4 years ago
parent
commit
613b887c4c
  1. 4
      layouts/partials/pagination.html

4
layouts/partials/pagination.html

@ -3,11 +3,11 @@
<ul class="pagination"> <ul class="pagination">
<li class="pagination__item pagination__item--previous"> <li class="pagination__item pagination__item--previous">
{{ if $paginator.HasPrev }}<a href="{{ $paginator.Prev.URL }}" class="pagination__link pagination__link--previous">{{end}}OLDER{{ if $paginator.HasPrev }}</a>{{end}}
{{ if $paginator.HasPrev }}<a href="{{ $paginator.Prev.URL }}" class="pagination__link pagination__link--previous">{{end}}NEWER{{ if $paginator.HasPrev }}</a>{{end}}
</li> </li>
<li>{{ $paginator.PageNumber }} of {{ $paginator.TotalPages }}</li> <li>{{ $paginator.PageNumber }} of {{ $paginator.TotalPages }}</li>
<li class="pagination__item pagination__item--next"> <li class="pagination__item pagination__item--next">
{{ if $paginator.HasNext }}<a href="{{ $paginator.Next.URL }}" class="pagination__link pagination__link--next">{{end}}NEWER{{ if $paginator.HasNext }}</a>{{end}}
{{ if $paginator.HasNext }}<a href="{{ $paginator.Next.URL }}" class="pagination__link pagination__link--next">{{end}}OLDER{{ if $paginator.HasNext }}</a>{{end}}
</li> </li>
</ul> </ul>
{{ end }} {{ end }}