Fix regression with site.IsServer when not running a server

Fixes #11006
This commit is contained in:
Bjørn Erik Pedersen
2023-05-24 09:26:30 +02:00
parent 99407c39ba
commit 9a235d0afc
10 changed files with 13 additions and 10 deletions

View File

@@ -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),