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

Alternate links #35

Open
omares opened this issue Jun 26, 2020 · 0 comments
Open

Alternate links #35

omares opened this issue Jun 26, 2020 · 0 comments

Comments

@omares
Copy link

omares commented Jun 26, 2020

Hey @ikeikeikeike,

does your library support localized links in the sitemap as documented by google (see sitemap toggle)?

I tried to add <xhtml:link /> entries but did not succeed.

Desired of an url entry would be:

  <url>
    <loc>http://www.example.com/english/page.html</loc>
    <xhtml:link 
               rel="alternate"
               hreflang="de"
               href="http://www.example.com/deutsch/page.html"/>
    <xhtml:link 
               rel="alternate"
               hreflang="de-ch"
               href="http://www.example.com/schweiz-deutsch/page.html"/>
    <xhtml:link 
               rel="alternate"
               hreflang="en"
               href="http://www.example.com/english/page.html"/>
  </url>

Cheers

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

No branches or pull requests

1 participant