This method will work for all Pages and Mounted Collections (just like Pages view in CP).
- Create a template called
sitemap.html
and add it to yourtheme/layouts/
folder. - Add the following code to the new template
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{{ nav from="/" include_home="true" include_entries="true" exclude="our-team" }}