You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to add numbers between prev and next like in the example below.
To make it possible we need to add data to Selmer with page index, URL, is page active.
Here is a Hugo example:
{{ if gt $paginator.TotalPages 1 }}
<nav><ulclass="pagination justify-content-center" style="flex-wrap: wrap"><liclass="page-item{{ if not $paginator.HasPrev }} disabled {{ end }}"><aclass="page-link" href="{{ if $paginator.HasPrev }}{{ $paginator.Prev.URL }}{{ end }}"><spanaria-hidden="true">«</span></a></li>
{{ range .Paginator.Pagers }}
<liclass="page-item{{ if eq . $paginator }} active{{ end }}"><aclass="page-link" href="{{ .URL }}">{{ .PageNumber }}</a></li>
{{ end }}
<liclass="page-item{{ if not $paginator.HasNext }} disabled {{ end }}"><aclass="page-link" href="{{ if $paginator.HasNext }}{{ $paginator.Next.URL }}{{ end }}"><spanaria-hidden="true">»</span></a></li></ul></nav>
{{ end }}
This is the part which Cryogen doesn't have:
{{ range .Paginator.Pagers }}
<liclass="page-item{{ if eq . $paginator }} active{{ end }}"><aclass="page-link" href="{{ .URL }}">{{ .PageNumber }}</a></li>
{{ end }}
So we need something in that taste.
The text was updated successfully, but these errors were encountered:
Currently there is a way to do
prev
/next
but not0
,1
,2
,...
I would like to add numbers between
prev
andnext
like in the example below.To make it possible we need to add data to Selmer with page index, URL, is page active.
Here is a Hugo example:
This is the part which Cryogen doesn't have:
So we need something in that taste.
The text was updated successfully, but these errors were encountered: