Use default sitemap configuration for homepage
authorJán Koščo <3k.stanley@gmail.com>
Tue, 8 Mar 2016 20:34:08 +0000 (21:34 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 10 Mar 2016 10:02:00 +0000 (11:02 +0100)
Fixes #1304

hugolib/site.go

index cee614d86a025df549cef53194ed9461d479f0b4..96bd1b4dcc39504ee05ba352338080542b977943 100644 (file)
@@ -1838,6 +1838,8 @@ func (s *Site) RenderSitemap() error {
        page.Lastmod = s.Info.LastChange
        page.Site = &s.Info
        page.URL = "/"
+       page.Sitemap.ChangeFreq = sitemapDefault.ChangeFreq
+       page.Sitemap.Priority = sitemapDefault.Priority
 
        pages = append(pages, page)
        pages = append(pages, s.Pages...)