hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit be3519fac06d828192bfd7942e9ff7daff787cc2
parent 0945673f050b9ef1c09b64d38577cff90d4653b4
Author: Ján Koščo <3k.stanley@gmail.com>
Date:   Tue,  8 Mar 2016 21:34:08 +0100

Use default sitemap configuration for homepage

Fixes #1304

Diffstat:
Mhugolib/site.go | 2++
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/hugolib/site.go b/hugolib/site.go
@@ -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...)