From: Bjørn Erik Pedersen Date: Thu, 5 Jan 2017 19:57:24 +0000 (+0100) Subject: hugolib: Sync page collections with Site.Info on rebuild in watch mode X-Git-Tag: v0.19~123 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9f20e648;p=brevno-suite%2Fhugo 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 --- diff --git a/hugolib/site.go b/hugolib/site.go index dd6e96c2..79915a1c 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