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

sitemap: hide hidden pages from sitemap and SEO indexing #85

Closed
McShelby opened this issue Sep 8, 2021 Discussed in #68 · 2 comments
Closed

sitemap: hide hidden pages from sitemap and SEO indexing #85

McShelby opened this issue Sep 8, 2021 Discussed in #68 · 2 comments
Assignees
Labels
feature New feature or request
Milestone

Comments

@McShelby
Copy link
Owner

McShelby commented Sep 8, 2021

Discussed in #68

Originally posted by jehoshua7 August 29, 2021
I have been using the following code to hide content

hidden = true

which works fine, yet I noticed the content still appears in the sitemap. Should the hidden feature extend to the sitemap ?

Ref - Sitemap template/ and Means to exclude content from sitemap.xml #653

@McShelby McShelby added the feature New feature or request label Sep 8, 2021
@McShelby McShelby self-assigned this Sep 8, 2021
@McShelby
Copy link
Owner Author

McShelby commented Sep 8, 2021

The sitemap has the same function as the menu itself: to discover content. therefore it should behave the same and hide all pages that are hidden and all pages below those pages.

@McShelby McShelby changed the title sitemap: hide hidden pages from sitemap sitemap: hide hidden pages from sitemap and SEO indexing Sep 9, 2021
@McShelby
Copy link
Owner Author

McShelby commented Sep 9, 2021

I decided to have a new config parameter for this feature. disableSeoHiddenPages is false by default and causes hidden pages to show up on the sitemap.xml and in Google (and other search engines) search.

@McShelby McShelby added this to the 2.2.0 milestone Sep 9, 2021
@McShelby McShelby closed this as completed Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant