multilingual website xhtml ?
elievischel opened this issue · comments
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/"
/>
Shouldn't be too hard to implement. I will look into it the next days.
@lgraubner thanks it would be really amazing for SEO :)
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.
@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
Thanks, I will have a look.