From 9f20e648b942a166ee5db2a622f1cda7df0c3141 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Thu, 5 Jan 2017 20:57:24 +0100 Subject: [PATCH] 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 --- hugolib/site.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hugolib/site.go b/hugolib/site.go index dd6e96c2a..79915a1ce 100644 --- 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