diff options
author | Bjørn Erik Pedersen <[email protected]> | 2023-05-20 15:04:22 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2023-05-20 17:45:56 +0200 |
commit | 7c7baa618325cb3d2b1ef48bdc1f97aae25f62e9 (patch) | |
tree | f80cd6e57e2f9dcb07ceae3e7c022f41d4076bfe /tpl | |
parent | 4f085e80da9a415725db3def70e5ce847cf06741 (diff) | |
download | hugo-7c7baa618325cb3d2b1ef48bdc1f97aae25f62e9.tar.gz hugo-7c7baa618325cb3d2b1ef48bdc1f97aae25f62e9.zip |
Add hugo.WorkingDir
Fixes #10969
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/cast/docshelper.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tpl/cast/docshelper.go b/tpl/cast/docshelper.go index 2ed28e3c5..981c51551 100644 --- a/tpl/cast/docshelper.go +++ b/tpl/cast/docshelper.go @@ -29,7 +29,8 @@ func init() { if err := d.Init(); err != nil { panic(err) } - d.Site = page.NewDummyHugoSite(newTestConfig()) + conf := testconfig.GetTestConfig(nil, newTestConfig()) + d.Site = page.NewDummyHugoSite(conf) var namespaces internal.TemplateFuncsNamespaces |