mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
Fix regression with site.IsServer when not running a server
Fixes #11006
This commit is contained in:
@@ -280,7 +280,7 @@ func newHugoSitesNew(cfg deps.DepsCfg, d *deps.Deps, sites []*Site) (*HugoSites,
|
||||
}
|
||||
|
||||
// Only needed in server mode.
|
||||
if cfg.Configs.Base.Internal.Running {
|
||||
if cfg.Configs.Base.Internal.Watch {
|
||||
h.ContentChanges = &contentChangeMap{
|
||||
pathSpec: h.PathSpec,
|
||||
symContent: make(map[string]map[string]bool),
|
||||
|
Reference in New Issue
Block a user