getgrav / grav-plugin-sitemap

Grav Sitemap Plugin
https://getgrav.org
MIT License
42 stars 42 forks source link

Children pages under an unpublished blog will show up in sitemap #103

Open aleclerc7 opened 2 years ago

aleclerc7 commented 2 years ago

Hello,

If there are still unpublished blog pages, all children pages of that blog will nevertheless be visible in the sitemap.

It is an unexpected behaviour. Since the parent page is not published, naturally, the dependent child pages should be in the sitemap, even if they are published. (When the parent is published, then the child pages will be accessible.)

The only solution is to manually set all child pages to unpublished.

It would be much easier and feel more natural to stop sitemap crawling at an unpublished parent. Then ignore all child pages.

Kind regards.