11 lines
492 B
HTML
11 lines
492 B
HTML
|
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
|
||
|
<div class="pagination">
|
||
|
{{- if .Paginator.HasPrev }}
|
||
|
<a class="pagination__item pagination__item--prev btn" href="{{ .Paginator.Prev.URL }}">«</a>
|
||
|
{{- end }}
|
||
|
<span class="pagination__item pagination__item--current">{{ .Paginator.PageNumber }}/{{ .Paginator.TotalPages }}</span>
|
||
|
{{- if .Paginator.HasNext }}
|
||
|
<a class="pagination__item pagination__item--next btn" href="{{ .Paginator.Next.URL }}">»</a>
|
||
|
{{- end }}
|
||
|
</div>
|
||
|
{{ end }}
|