-
Notifications
You must be signed in to change notification settings - Fork 48
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
Add generating sitemap index #159
Comments
I'm not sure this is a good idea: it would make Google index results for all the versions (assuming Google listened), but that means that out-of-date revisions will get indexed too. On the contrary, I think the better behavior is to tell Google to prefer only the default/latest version. That's already supported in mike by setting |
I'm not an expert in SEO at all but I guess older versions won't dissapear from Google index as soon as newer version is published. Some sort of I use canonical version and it produces |
It would be great if mike could generate a sitemap that covers all releases, in pydantic I've just added a root sitemap to point just to the latest release, see here, but including a link to all sitemaps would be great. |
@jimporter
See following comment. |
On further investigation, I don't think a combined sitemap index actually solves my problem. Based on Google's docs, it seems like you're only supposed to include canonical URLs in the sitemap. And in fact, if you're using |
It would be nice to generate sitemap index that will reference
sitemap.xml
for all available versions. Right now you have to either specify sitemaps for each versions manually.If that would help, I can implement it and send a PR.
The text was updated successfully, but these errors were encountered: