Context
Gatsby, the headless CMS marvel, alongside gatsby-plugin-advanced-sitemap makes generating a robust sitemap.xml file a breeze.
The plugin supports excluding pages with either by slug or with clever regular expression.
However in my case, I have 2 collections of User-Generated Content pages:
- the collection A, with pages that need to be hosted, and indexed,
- the collection B, with pages that need to be hosted, but NOT indexed.
The B collection has not a slug pattern making them identifiable with a regular expression.
Question
How to exclude the collection B from indexation?