shithub: hugo

Download patch

ref: 9f20e648b942a166ee5db2a622f1cda7df0c3141
parent: c60c41e051698292929f5c1f34f1760a6a37b560
author: Bjørn Erik Pedersen <[email protected]>
date: Thu Jan 5 15:57:24 EST 2017

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

--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -1532,6 +1532,8 @@
 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