We implement "noindex" on page(s) with page metadata field. On webpage section "head" this is visible

<meta name="robots" content="noindex">

It should be excluded from sitemap.xml because SEO search engines expect that.

Whats is the way to go?

Nothing OOTB?

We need an attribute in SitemapItem when website is producing the sitemap.xml

1 Answer 1


IIRC start the names of the items (Pages and SGs) with an underscore _. Then do the required actions to regenerate the sitemap.

The DXA templating code is available on GitHub so feel free to look through the code, there might be other ways as well besides the underscore. Also, another good place to refer is the documentation

  • Thanks for answer. That works and for now usable. Other option where model maybe "SitemapItem" expands is not clear from the doc. Commented Jun 8, 2022 at 18:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.