mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-19 21:52:59 +00:00
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
This commit is contained in:
parent
c60c41e051
commit
9f20e648b9
1 changed files with 2 additions and 0 deletions
|
@ -1532,6 +1532,8 @@ func (s *Site) assembleTaxonomies() {
|
||||||
func (s *Site) resetBuildState() {
|
func (s *Site) resetBuildState() {
|
||||||
|
|
||||||
s.PageCollections = newPageCollectionsFromPages(s.rawAllPages)
|
s.PageCollections = newPageCollectionsFromPages(s.rawAllPages)
|
||||||
|
// TODO(bep) get rid of this double
|
||||||
|
s.Info.PageCollections = s.PageCollections
|
||||||
|
|
||||||
s.Info.paginationPageCount = 0
|
s.Info.paginationPageCount = 0
|
||||||
s.draftCount = 0
|
s.draftCount = 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue