How to exclude a page from the sitemap.xml file?

How to exclude a page from the sitemap.xml file?

For example , i don’t want the sitemap.xml file include the url for /profile page and website_script.js page.

How to exclude it? thanks.

You need to set no_sitemap in the get_context method.

I will also add a tag <!-- no-sitemap --> switch. Thanks for reporting!