mirror of
https://github.com/gohugoio/hugo.git
synced 2025-05-07 19:29:51 +03:00
parent
4f085e80da
commit
7c7baa6183
11 changed files with 86 additions and 14 deletions
|
@ -990,7 +990,9 @@ func (c *hugoBuilder) loadConfig(cd *simplecobra.Commandeer, running bool) error
|
|||
cfg := config.New()
|
||||
cfg.Set("renderToDisk", (c.s == nil && !c.r.renderToMemory) || (c.s != nil && c.s.renderToDisk))
|
||||
watch := c.r.buildWatch || (c.s != nil && c.s.serverWatch)
|
||||
cfg.Set("environment", c.r.environment)
|
||||
if c.r.environment != "" {
|
||||
cfg.Set("environment", c.r.environment)
|
||||
}
|
||||
|
||||
cfg.Set("internal", maps.Params{
|
||||
"running": running,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue