ikeikeikeike / go-sitemap-generator

go-sitemap-generator is the easiest way to generate Sitemaps in Go
https://github.com/ikeikeikeike/go-sitemap-generator
MIT License
218 stars 65 forks source link

Multiple sitemap urls in a index sitemaps #32

Open kf99916 opened 5 years ago

kf99916 commented 5 years ago

Empower the index sitemaps include multiple sitemap urls.

Like this:

<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
    <sitemap>
        <loc>https://en-us.abc.com/sitemap1.xml.gz</loc>
        <lastmod>2019-04-11T18:37:44+08:00</lastmod>
    </sitemap>
    <sitemap>
        <loc>https://zh-tw.abc.com/sitemap1.xml.gz</loc>
        <lastmod>2019-04-11T18:37:44+08:00</lastmod>
    </sitemap>
</sitemapindex>