hugo

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

git clone git://git.shimmy1996.com/hugo.git
commit 9f20e648b942a166ee5db2a622f1cda7df0c3141
parent c60c41e051698292929f5c1f34f1760a6a37b560
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Thu,  5 Jan 2017 20:57:24 +0100

hugolib: Sync page collections with Site.Info on rebuild in watch mode

There is definitive potential for cleanup in this area, but this will have to do for now.

Fixes #2869

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