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

multilingual website xhtml ? #28

Open
elievischel opened this issue Feb 20, 2018 · 5 comments
Open

multilingual website xhtml ? #28

elievischel opened this issue Feb 20, 2018 · 5 comments

Comments

@elievischel
Copy link

Hi,

would it be possible to add the functionality for multilingual website ?
=>
with

http://www.example.com/cool
daily
<xhtml:link
rel="alternate"
hreflang="en"
href="http://www.example.com/en/cool"
/>
<xhtml:link
rel="alternate"
hreflang="de"
href="http://www.example.com/de/cool/"
/>

@lgraubner
Copy link
Owner

Shouldn't be too hard to implement. I will look into it the next days.

@elievischel
Copy link
Author

@lgraubner thanks it would be really amazing for SEO :)

@lgraubner
Copy link
Owner

I dived into that feature and actually it's not as easy as I expected. The problem is, that the generator has to skip links which are already handled by a link rel="alternate". But unfortunately the generator is not keeping track on which items were already added as it just streams the pieces to a file. Also a lookahead would be required to not add those site before the "main" language site was added with it's links.

@hazemhagrass
Copy link

@elievischel you can check this one https://github.com/hazemhagrass/sitemap-generator
It's a fork from the current implementation and is implemented multi languages crawling

@lgraubner
Copy link
Owner

Thanks, I will have a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants