diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-05-24 09:26:30 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-05-24 12:42:56 +0200 |
commit | 9a235d0afca6125f7cf222ae0d66a5fe91ae8694 (patch) | |
tree | 00d0b6b3edfda3e7e2ca90f0e6def9e64d301912 /commands | |
parent | 99407c39ba92b3bfc569a505b05033e04b242e8d (diff) |
Fix regression with site.IsServer when not running a server
Fixes #11006
Diffstat (limited to 'commands')
-rw-r--r-- | commands/commandeer.go | 2 | ||||
-rw-r--r-- | commands/server.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/commands/commandeer.go b/commands/commandeer.go index 912a55780..08f959579 100644 --- a/commands/commandeer.go +++ b/commands/commandeer.go @@ -339,7 +339,7 @@ func (r *rootCommand) Run(ctx context.Context, cd *simplecobra.Commandeer, args b := newHugoBuilder(r, nil) - if err := b.loadConfig(cd, true); err != nil { + if err := b.loadConfig(cd, false); err != nil { return err } diff --git a/commands/server.go b/commands/server.go index b42cb1ed3..a288bb2c8 100644 --- a/commands/server.go +++ b/commands/server.go @@ -204,7 +204,7 @@ func (f *fileServer) createEndpoint(i int) (*http.ServeMux, net.Listener, string listener := f.c.serverPorts[i].ln logger := f.c.r.logger - r.Printf("Environment: %q", f.c.hugoTry().Deps.Site.Hugo().Environment) + r.Printf("Environment: %q\n", f.c.hugoTry().Deps.Site.Hugo().Environment) if i == 0 { if f.c.renderToDisk { |