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

Fixed sitemap to exclude pages with do-not-crawl tag. #342

Merged
merged 1 commit into from
Aug 14, 2024
Merged

Conversation

jbum
Copy link
Collaborator

@jbum jbum commented Aug 9, 2024

I noticed today, when testing search, that some testing pages tagged do-not-crawl were showing up in the site-map.

This was due to two design flaws. The sitemap generator was not looking for these tags, and the code that surfaces the tags was not coded correctly.

I've fixed this bug so that such pages do not show up in the sitemap.xml file.

Moreover, these pages now correctly include a <meta name="robots" content="noindex"> tag.

@jbum jbum requested a review from xjensen August 9, 2024 23:47
Copy link

github-actions bot commented Aug 9, 2024

Preview site available at jbum-fix-sitemap.pr.digital.ca.gov.

@jbum jbum merged commit 52ba85a into main Aug 14, 2024
1 check passed
@jbum jbum deleted the jbum-fix-sitemap branch August 14, 2024 21:41
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

Successfully merging this pull request may close these issues.

2 participants