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:
c60c41e
)
hugolib: Sync page collections with Site.Info on rebuild in watch mode
author
Bjørn Erik Pedersen
<bjorn.erik.pedersen@gmail.com>
Thu, 5 Jan 2017 19:57:24 +0000
(20:57 +0100)
committer
Bjørn Erik Pedersen
<bjorn.erik.pedersen@gmail.com>
Thu, 5 Jan 2017 19:57:24 +0000
(20:57 +0100)
There is definitive potential for cleanup in this area, but this will have to do for now.
Fixes #2869
hugolib/site.go
patch
|
blob
|
history
diff --git
a/hugolib/site.go
b/hugolib/site.go
index dd6e96c2a0c07d68210893d2c9fae7edc6ed8bb4..79915a1ceff3b48544304867c483a5d456666128 100644
(file)
--- a/
hugolib/site.go
+++ b/
hugolib/site.go
@@
-1532,6
+1532,8
@@
func (s *Site) assembleTaxonomies() {
func (s *Site) resetBuildState() {
s.PageCollections = newPageCollectionsFromPages(s.rawAllPages)
+ // TODO(bep) get rid of this double
+ s.Info.PageCollections = s.PageCollections
s.Info.paginationPageCount = 0
s.draftCount = 0