Dolphiq / craft3-plugin-sitemap

A craft 3 plugin that provides an easy way to enable and manage an XML sitemap for search engines like Google
MIT License
28 stars 18 forks source link

Mulltilingual sites support? #14

Closed mimamuh closed 6 years ago

mimamuh commented 6 years ago

Hi,

is there an idea how to support multilingual sites?

For example google suggest to treat them within the sitemap.xml like so per site (for example en as default and de as second language):

<url>
    <loc>http://www.example.com/english/</loc>
    <xhtml:link 
                 rel="alternate"
                 hreflang="de"
                 href="http://www.example.com/deutsch/"
                 />
</url>

Right now the plugin will generate it like so:

<url>
    <loc>http://www.example.com/english/</loc>
</url>
<url>
    <loc>http://www.example.com/deutsch/</loc>
</url>

Is there any support for multilingual setups planned or possible right now?

johanzandstra commented 6 years ago

@MiMaMuh, sounds interesting! What about the compatibility with other search engines? Do you have any experience with that?

johanzandstra commented 6 years ago

@MiMaMuh we just added support for this in the last release, thanks!