hugolib: Sync page collections with Site.Info on rebuild in watch mode - hugo - [fork] hugo port for 9front
(HTM) git clone git@git.drkhsh.at/hugo.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit 9f20e648b942a166ee5db2a622f1cda7df0c3141
(DIR) parent c60c41e051698292929f5c1f34f1760a6a37b560
(HTM) 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:
M hugolib/site.go | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
(DIR) 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