From adecd31022459ff2e8fb44ce09f8636a76dc6706 Mon Sep 17 00:00:00 2001 From: Andreas Mieke Date: Fri, 2 Oct 2015 15:49:06 +0200 Subject: [PATCH] Ommit empty Modified tag if LPs are empty (Aired == UNIX 0) --- gparser/sitemap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gparser/sitemap.go b/gparser/sitemap.go index 83af8db..f07aa98 100644 --- a/gparser/sitemap.go +++ b/gparser/sitemap.go @@ -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"` }