Section Pagination

I’m attempting to paginate through a section, but I’m running into the error

at <.Paginator.Pages>: error calling Pages: runtime error: invalid memory address or nil pointer dereference

heres whats causing it
{{ range where .Paginator.Pages "Section" "nav"}}{{end}}

I’ve tried this as well
{{ $paginator := .Paginate (where .Site.Pages ".Params.class" "partner") 9}} {{ range $paginator.Pages }}

link to code: https://github.com/storj/tardigrade.io/blob/tard-apps/layouts/partials/apps/partners.html

Any idea what section pagination might not be working in this case?

You are calling your pagination from a single.html layout. It is only available in list pages.

thank you!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.