I have a website build in Angular 8, which among other things has a blog section. I have a sitemap.xml
file that contains all the pages except the blog. The blog is created on WordPress so in order to get the posts, I invoke the WordPress API, show the HTML content and construct the URL by the given slug.
For example:
WordPress blog: https://my-blog.example/2021/07/23/a-new-story/
after being parsed on my site: https://my-site.example/blog/a-new-story
How can I add the blog pages on the sitemap.xml
, given that the origin of the pages is on WordPress, so crawlers can access them?