How to exclude certain pages from pagination?

I want to exclude certain pages, like privacy.html, about.html, contact.html, and terms-of-use.html from pagination of home page, so that the pages don’t show up in, let’s say, example.com/page/5/.

All pages, including the articles, are in the content folder.

How can I do this?

Two options:

  1. Use the Build Options (use the search) to exclude certain pages from all or some page collections.
  2. Use the Paginate method and use where to exclude pages.

I used the Build Options to exclude certain pages from paginated pages.

I added the following on the pages I want to exclude:

_build:
  list: never

And it works.

Thank you.

2 Likes

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