I am using
Sitecore 10 and
Angular JSS without
SXA, I did not install it, so my question is how I can generate an
XML sitemap to our site?
You can generate an XML sitemap by inheriting the
sitemap SXA templates on the
JSS settings template.
Please inherit the base template named
_SitemapSettings from below mentioned path to the
JSS setting template
And another template named
_Sitemap from below mentioned path to the corresponding route template you have created.
You can also check out the detailed blog about this on the below link. (For transparency, this is my personal blog post).
To generate the sitemap, you will still need to go through the Sitecore Pipelines. The pipeline responsible for the sitemap would be
Even if you are not using SXA, you may try to see how the sitemap has been implemented. Moreover, there are many online resources on how to implement sitemap on Sitecore, examples:
If you want to see how the sitemap is implemented in SXA, you can check the following namespace