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
220 stars 65 forks source link

Fix sitemap elements sequence #23

Closed hurrycaner closed 6 years ago

hurrycaner commented 6 years ago

According to sitemaps schema The correct sequence to lastmod is right after loc, not after changefreq:

<xsd:sequence>
  <xsd:element name="loc" type="tLoc"/>
  <xsd:element name="lastmod" type="tLastmod" minOccurs="0"/>
  <xsd:element name="changefreq" type="tChangeFreq" minOccurs="0"/>
  <xsd:element name="priority" type="tPriority" minOccurs="0"/>
  <xsd:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="strict"/>
</xsd:sequence>
hurrycaner commented 6 years ago

@ikeikeikeike can you help me fixing this?

ikeikeikeike commented 6 years ago

All thanks.