18 lines
580 B
HTML
18 lines
580 B
HTML
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
|
|
{{ $prev := "fa fa-chevron-left"}}
|
|
{{ $next := "fa fa-chevron-right"}}
|
|
<nav class="pagination" role="pagination">
|
|
{{ if .Paginator.HasPrev }}
|
|
<a href="{{ .Paginator.Prev.URL }}"><i class="{{ $prev }}"></i></a>
|
|
{{ else }}
|
|
<i class="{{ $prev }}"></i>
|
|
{{ end }}
|
|
<span> {{ .Paginator.PageNumber }} / {{ .Paginator.TotalPages }} </span>
|
|
{{ if .Paginator.HasNext }}
|
|
<a href="{{ .Paginator.Next.URL }}"><i class="{{ $next }}"></i></a>
|
|
{{ else }}
|
|
<i class="{{ $next }}"></i>
|
|
{{ end }}
|
|
</nav>
|
|
{{ end }}
|