0

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

4

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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