Scheduled posts not appearing in the sitemap

Hi everyone,
Anyone having issue with the sitemap missing posts?
for me its happening most for the scheduled posts, is there a way to force regenerate the sitemap with ghost CLI?

For example in the following sitemap:
https://blog.pavago.co/sitemap-posts.xml

Its missing post: Why Hire in Latin America: Advantages and Considerations

Sitemap actually is missing more then just 1 post, but just for example I am mentioning 1 post.

My routes.yml is default, I have not changed it.
My posts are not using canonical url either (I read that can also make ghost skip the posts from sitemap)

Please help,
Thanks

It looks like you’ve set a canonical URL for that post. When you specify the canonical URL, it won’t be included in the sitemap.

1 Like

Why is that?
Sometimes, you have to add canonical. What to do in that case?

The reason to add a canonical URL is to say that the post you’re on is NOT the authoritative source for the content, and a different URL (the canonical URL) should be indexed instead. In that case, the post doesn’t need to appear in the sitemap, because you’re telling Google not to index it anyway.