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 sitemap #111

Open
colinrim opened this issue Oct 5, 2023 · 0 comments
Open

Multilingual sitemap #111

colinrim opened this issue Oct 5, 2023 · 0 comments

Comments

@colinrim
Copy link

colinrim commented Oct 5, 2023

Any chance to have a multilingual sitemap created?
Eg.


<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:xhtml="http://www.w3.org/1999/xhtml"
        xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0"
        xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"
        xmlns:news="http://www.google.com/schemas/sitemap-news/0.9"
        xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
    
    <!-- English Pages -->
    <url>
        <loc>https://example.com/en/page1</loc>
        <xhtml:link rel="alternate" hreflang="en" href="https://example.com/en/page1"/>
        <xhtml:link rel="alternate" hreflang="es" href="https://example.com/es/page1"/>
        <lastmod>2023-10-05T12:00:00+00:00</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.8</priority>
    </url>
    
    <url>
        <loc>https://example.com/en/page2</loc>
        <xhtml:link rel="alternate" hreflang="en" href="https://example.com/en/page2"/>
        <xhtml:link rel="alternate" hreflang="es" href="https://example.com/es/page2"/>
        <lastmod>2023-10-05T12:00:00+00:00</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.7</priority>
    </url>

    <!-- Spanish Pages -->
    <url>
        <loc>https://example.com/es/page1</loc>
        <xhtml:link rel="alternate" hreflang="en" href="https://example.com/en/page1"/>
        <xhtml:link rel="alternate" hreflang="es" href="https://example.com/es/page1"/>
        <lastmod>2023-10-05T12:00:00+00:00</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.8</priority>
    </url>
    
    <url>
        <loc>https://example.com/es/page2</loc>
        <xhtml:link rel="alternate" hreflang="en" href="https://example.com/en/page2"/>
        <xhtml:link rel="alternate" hreflang="es" href="https://example.com/es/page2"/>
        <lastmod>2023-10-05T12:00:00+00:00</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.7</priority>
    </url>
</urlset>
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

1 participant