Ommit empty Modified tag if LPs are empty (Aired == UNIX 0)
This commit is contained in:
parent
dd337aaad5
commit
adecd31022
|
@ -16,7 +16,7 @@ type urlset struct {
|
||||||
|
|
||||||
type URL struct {
|
type URL struct {
|
||||||
Location string `xml:"loc"`
|
Location string `xml:"loc"`
|
||||||
LastMod time.Time `xml:"lastmod"`
|
LastMod time.Time `xml:"lastmod,omitempty"`
|
||||||
ChangeFreq string `xml:"changefreq"`
|
ChangeFreq string `xml:"changefreq"`
|
||||||
Priority float32 `xml:"priority"`
|
Priority float32 `xml:"priority"`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue