Add hugo.WorkingDir

Fixes #10969
This commit is contained in:
Bjørn Erik Pedersen
2023-05-20 15:04:22 +02:00
parent 4f085e80da
commit 7c7baa6183
11 changed files with 86 additions and 14 deletions

View File

@@ -444,9 +444,9 @@ func (s testSite) Param(key any) (any, error) {
}
// NewDummyHugoSite creates a new minimal test site.
func NewDummyHugoSite(cfg config.Provider) Site {
func NewDummyHugoSite(conf config.AllProvider) Site {
return testSite{
h: hugo.NewInfo(hugo.EnvironmentProduction, nil),
h: hugo.NewInfo(conf, nil),
l: &langs.Language{
Lang: "en",
},