diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-11-10 20:55:52 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-11-22 09:57:03 +0100 |
commit | 88972b0d5b62861128f101256027a52ab48eae86 (patch) | |
tree | bc2170773a3c6f6f0a1b62792174539fefdc864d /commands | |
parent | 640b8bed21eabfd6e256814eab4b3ab3ad2e3354 (diff) |
node to page: Refactor the build process
To make it easier to follow and understand.
Both building and rebuilding now follow a four step flow:
1. Init
2. Process
3. Assemble
4. Render
And now there are only one Build method, used for both builds and rebuilds.
Updates #2297
Diffstat (limited to 'commands')
-rw-r--r-- | commands/hugo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/hugo.go b/commands/hugo.go index 54d0a255e..b6603c6f2 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -670,7 +670,7 @@ func rebuildSites(events []fsnotify.Event) error { if err := initSites(); err != nil { return err } - return Hugo.Rebuild(hugolib.BuildCfg{PrintStats: !quiet, Watching: true}, events...) + return Hugo.Build(hugolib.BuildCfg{PrintStats: !quiet, Watching: true}, events...) } // NewWatcher creates a new watcher to watch filesystem events. |