-
Notifications
You must be signed in to change notification settings - Fork 61
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
Feature request: either work with an existing jekyll sitemap plugin or generate sitemap #29
Comments
I would like to see correct sitemap.xml too. |
Me too |
I'm pretty sure polyglot is running after jekyll-sitemaps, and is copying the As this has been a floating issue since 2016, I'm going to resolve it in my project by removing the sitemaps plugin & building a sitemap file using polyglot vars. I'll post my example once finished (maybe we could put in a guide or in the example documents). If you've already created anything which could give me a head start feel free to share. |
Anything get resolved with this? @jerturowetz interested to see what you have created. |
EDIT: Wrapped html comments in liquid comment syntax -- Just wrapped it up now! I've ditched using a sitemap plugin and just built the sitemap manually. There's a few items to note:
Here's the contents of my
|
@jerturowetz looks ideal. You should put this on the Readme.md |
@jerturowetz, the proposed method works great. However, as the plugin jekyll-sitemap is removed, no robots.txt is generated anymore. |
In my custom sitemap similar to the one above I am having hard time with excluding from the sitemap document nodes without translation, that is pages of the documents that are rendered as untranslated fallback pages. It might be technically not wrong to have them listed, but since sitemap is used to index web sites, it is not really useful to index fallback pages without actual translation, since they would be just duplicates of the originals and the metadata stating the language would be incorrect. It's better not to index them at all and exclude them from sitemap, despite the fact that they show up on the web resulting from the fallback mechanism. This would be also the most coherent way to do it, if sitemap indexes referring to language specific sitemaps are used. Currently only decent option to solve this is to create placeholder pages for documents without translation with the warning "this document is not translated yet, please refer to the original document". This is a viable option and with a special template one could include the original or default language page with a separate language tag in HTML, but it seems to overcomplicate the website presentation and not listing those dummy fallback pages would still make sense. I think having a variable to list available translations suggested here might be useful for solving these kinds of issues. Or is there another way to solve this? I think similar problems appear also when rendering menus and site archives, also in language switcher, where one might want to indicate if there is an actual translation available. |
https://github.com/untra/polyglot?tab=readme-ov-file#sitemap-generation |
Currently I am using jekyll-sitemap for generating sitemap, see example. And polyglot helps generating sitemap.xml for default and other languages in their respective lang dirs. But the links in all generated sitemap.xml files are for default languages. So either there is some setting that I don't understand something and doing wrong, or polyglot currently doesn't target generating sitemap.xml
Ideally, I wish there was sitemap as explained in this google webmaster tip instead of multiple sitemap.xml (as it is not for visitor, but crawl bot). But even if there are separate sitemap.xml being generated, I wish somehow links were correct.
I see two possibilities to achieve it:
Thanks @untra for such wonderful support and help that I got from you for the two issues I faced.
+satish
The text was updated successfully, but these errors were encountered: