added new circles pagination style (activatable in site config); added transition to everything; separated pagination in its own partial
This commit is contained in:
parent
b35dae6e1e
commit
c44d12cfcc
6 changed files with 56 additions and 21 deletions
|
|
@ -28,24 +28,6 @@
|
|||
<hr />
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ if gt .Paginator.TotalPages 1 }}
|
||||
<div id="pageNavigation">
|
||||
{{ if .Paginator.HasPrev }}
|
||||
<a href="{{ .Paginator.Prev.URL }}" title="Previous page"><<<</a>
|
||||
{{ end }}
|
||||
{{ $currentPage := .Paginator.PageNumber }}
|
||||
{{ range .Paginator.Pagers }}
|
||||
{{ if ne .PageNumber $currentPage }}
|
||||
<a href="{{ .URL }}">{{ .PageNumber }}</a>
|
||||
{{ else }}
|
||||
<span>[{{ .PageNumber }}]</span>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ if .Paginator.HasNext }}
|
||||
<a href="{{ .Paginator.Next.URL }}" title="Next page">>>></a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{- partial "paginator.html" . -}}
|
||||
|
||||
{{ end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue