diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-02-17 12:32:25 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-02-17 13:14:15 +0100 |
commit | 4835f9e898350ac49d68fba2343a71ceb29e6897 (patch) | |
tree | a475d6abd228cc1f76989a7ead71599e9f389c44 /commands | |
parent | 5bdda0bdbf5eca4064d395219d0797aaed24070f (diff) | |
download | hugo-4835f9e898350ac49d68fba2343a71ceb29e6897.tar.gz hugo-4835f9e898350ac49d68fba2343a71ceb29e6897.zip |
commands: Fix --clock with the list command
Fixes #11888
Diffstat (limited to 'commands')
-rw-r--r-- | commands/list.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/commands/list.go b/commands/list.go index 41a45e402..8debe5ca5 100644 --- a/commands/list.go +++ b/commands/list.go @@ -23,7 +23,6 @@ import ( "time" "github.com/bep/simplecobra" - "github.com/gohugoio/hugo/config" "github.com/gohugoio/hugo/hugolib" "github.com/gohugoio/hugo/resources/page" "github.com/gohugoio/hugo/resources/resource" @@ -46,7 +45,7 @@ func newListCommand() *listCommand { list := func(cd *simplecobra.Commandeer, r *rootCommand, shouldInclude func(page.Page) bool, opts ...any) error { bcfg := hugolib.BuildCfg{SkipRender: true} - cfg := config.New() + cfg := flagsToCfg(cd, nil) for i := 0; i < len(opts); i += 2 { cfg.Set(opts[i].(string), opts[i+1]) } |