projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0945673
)
Use default sitemap configuration for homepage
author
Ján Koščo
<3k.stanley@gmail.com>
Tue, 8 Mar 2016 20:34:08 +0000
(21:34 +0100)
committer
Bjørn Erik Pedersen
<bjorn.erik.pedersen@gmail.com>
Thu, 10 Mar 2016 10:02:00 +0000
(11:02 +0100)
Fixes #1304
hugolib/site.go
patch
|
blob
|
history
diff --git
a/hugolib/site.go
b/hugolib/site.go
index cee614d86a025df549cef53194ed9461d479f0b4..96bd1b4dcc39504ee05ba352338080542b977943 100644
(file)
--- 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...)