t := time.Now()
for i := 0; i < benchmarkTimes; i++ {
- if err = resetAndbuildSites(false); err != nil {
+ if err = resetAndBuildSites(false); err != nil {
return err
}
}
viper.OnConfigChange(func(e fsnotify.Event) {
jww.FEEDBACK.Println("Config file changed:", e.Name)
// Force a full rebuild
- utils.CheckErr(reCreateAndbuildSites(true))
+ utils.CheckErr(recreateAndBuildSites(true))
if !viper.GetBool("disableLiveReload") {
// Will block forever trying to write to a channel that nobody is reading if livereload isn't initialized
livereload.ForceRefresh()
return a
}
-func reCreateAndbuildSites(watching bool) (err error) {
+func recreateAndBuildSites(watching bool) (err error) {
if err := initSites(); err != nil {
return err
}
return Hugo.Build(hugolib.BuildCfg{CreateSitesFromConfig: true, Watching: watching, PrintStats: !quiet})
}
-func resetAndbuildSites(watching bool) (err error) {
+func resetAndBuildSites(watching bool) (err error) {
if err := initSites(); err != nil {
return err
}