diff --git a/layouts/partials/single/collection-list.html b/layouts/partials/single/collection-list.html index 906f4b35..232f02ed 100644 --- a/layouts/partials/single/collection-list.html +++ b/layouts/partials/single/collection-list.html @@ -4,7 +4,7 @@ {{- if .Params.collections | and $params.collectionList -}} {{- $collectionTerms := .GetTerms "collections" -}} {{- range $collectionTerms -}} - {{- $pages := .Pages.ByDate -}} + {{- $pages := .Pages -}} {{- $open := eq (index $collectionTerms 0) . -}} {{- $currentKey := 0 -}} @@ -22,7 +22,7 @@
- {{- with $pages.Next $ -}} + {{- with $pages.Prev $ -}} {{- else -}} {{- dict "Class" "fa-solid fa-angle-left fa-fw collection-nav-item text-secondary" | partial "plugin/icon.html" -}} {{- end -}} - {{ $currentKey }}/{{ $pages.Len }} - {{- with $pages.Prev $ -}} + {{ sub $pages.Len $currentKey }}/{{ $pages.Len }} + {{- with $pages.Next $ -}}