-
Notifications
You must be signed in to change notification settings - Fork 138
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]i18n support #88
Comments
Can you explain how you would like to include them in the sitemap? Perhaps the plugin could add them? |
I think the deal is that screeninteraction/jekyll-multiple-languages-plugin creates several different versions of the site: one for each language provided (generated in Because each language is built as a separate site, the I have no idea how this could be addressed for this specific plugin. |
With the current design of screeninteraction/jekyll-multiple-languages-plugin, there is just no way this is possible 😞 |
There're guidelines from Google about alternative language pages. I guess, the plugin could apply them to include links to alternative pages in the root sitemap.xml. |
@pathawks Could you go more in detail about this?
What is the main issue here? I would like to look into writing a PR to address this (because I am currently working on WeAreFairphone/landing-page which would benefit from this feature. I am wondering, on which site I would have to write a patch. |
@Ryuno-Ki Just to elaborate a bit: The way screeninteraction/jekyll-multiple-languages-plugin works is by generating the site multiple times, once for each language. This means that when (ie) the German version of a site is generating, Jekyll does not know anything about the English version of a site. When the English version of a site is generating, Jekyll does not know anything about the German version of the site. The way the plugin is implemented, there is no way for a plugin to even know that other language versions of the site exist! In order for this sitemap plugin to work with that plugin, there would need to be only one I think, rather than trying to completely redesign that plugin, it would be easier to add a sitemap generator to screeninteraction/jekyll-multiple-languages-plugin. |
As a workaround I use sitemapindex as
|
@elnappo This is an interesting idea I hadn’t considered! Thanks for sharing |
Jekyll supports multilingual websites through a plugin (https://github.com/screeninteraction/jekyll-multiple-languages-plugin). It would be great to be able to include these in the sitemap as well.
The text was updated successfully, but these errors were encountered: