Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aleclerc7 opened this issue Mar 15, 2022 · 0 comments
Open

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

aleclerc7 opened this issue Mar 15, 2022 · 0 comments

Comments

@aleclerc7
Copy link

Hello,

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

  • The /blog will not be in the sitemap (unpublished 👍)
  • The /blog/post1 will be visible in the sitemap (because it is not set to unpublished 👎)

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant