Exclude page from pagination

Hi,

I have a few pages that I’m not showing on me site but .TotalPages is counting them anyway. Is there a way to exclude the pages from the .TotalPages variable ?

/Kim

Sorry … don’t know how to delete my post … found the answer to be

{{ $paginator := .Paginate (where .Data.Pages “Type” “post”) }}

1 Like