Use default sitemap configuration for homepage - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit be3519fac06d828192bfd7942e9ff7daff787cc2
DIR parent 0945673f050b9ef1c09b64d38577cff90d4653b4
HTML 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:
M hugolib/site.go | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
DIR 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...)