netlify-plugin-sitemap
netlify-plugin-sitemap copied to clipboard
Multilingual sitemap
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>