Ommit empty Modified tag if LPs are empty (Aired == UNIX 0)

This commit is contained in:
Andreas Mieke 2015-10-02 15:49:06 +02:00
parent dd337aaad5
commit adecd31022

View file

@ -16,7 +16,7 @@ type urlset struct {
type URL struct {
Location string `xml:"loc"`
LastMod time.Time `xml:"lastmod"`
LastMod time.Time `xml:"lastmod,omitempty"`
ChangeFreq string `xml:"changefreq"`
Priority float32 `xml:"priority"`
}