2021-01-04 06:20:55 -06:00
|
|
|
{{ if gt .Paginator.TotalPages 1 }}
|
2021-04-12 16:58:07 -05:00
|
|
|
{{ $navtype := .Site.Params.Navtype }}
|
2021-01-04 06:20:55 -06:00
|
|
|
<div id="pageNavigation" class='
|
2021-04-12 16:58:07 -05:00
|
|
|
{{ if eq $navtype "circles" }}
|
2021-01-04 06:20:55 -06:00
|
|
|
nav-circles
|
|
|
|
{{ end }}
|
|
|
|
'>
|
|
|
|
{{ if .Paginator.HasPrev }}
|
2021-04-12 16:58:07 -05:00
|
|
|
<a href="{{ .Paginator.Prev.URL }}" title="Previous page">
|
|
|
|
{{ if eq $navtype "circles" }}
|
|
|
|
←
|
|
|
|
{{ else }}
|
|
|
|
<<<
|
|
|
|
{{ end }}
|
|
|
|
</a>
|
2021-01-04 06:20:55 -06:00
|
|
|
{{ end }}
|
|
|
|
{{ $currentPage := .Paginator.PageNumber }}
|
|
|
|
{{ range .Paginator.Pagers }}
|
|
|
|
{{ if ne .PageNumber $currentPage }}
|
|
|
|
<a href="{{ .URL }}">{{ .PageNumber }}</a>
|
|
|
|
{{ else }}
|
2021-04-12 16:58:07 -05:00
|
|
|
<span>
|
|
|
|
{{ if eq $navtype "circles" }}{{ .PageNumber }}
|
|
|
|
{{ else }}[{{ .PageNumber }}]{{ end }}
|
|
|
|
</span>
|
2021-01-04 06:20:55 -06:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ if .Paginator.HasNext }}
|
2021-04-12 16:58:07 -05:00
|
|
|
<a href="{{ .Paginator.Next.URL }}" title="Next page">
|
|
|
|
{{ if eq $navtype "circles" }}
|
|
|
|
→
|
|
|
|
{{ else }}
|
|
|
|
>>>
|
|
|
|
{{ end }}
|
|
|
|
</a>
|
2021-01-04 06:20:55 -06:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|