mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
@@ -17,6 +17,7 @@ import (
|
|||||||
"github.com/gohugoio/hugo/common/loggers"
|
"github.com/gohugoio/hugo/common/loggers"
|
||||||
"github.com/gohugoio/hugo/deps"
|
"github.com/gohugoio/hugo/deps"
|
||||||
"github.com/gohugoio/hugo/docshelper"
|
"github.com/gohugoio/hugo/docshelper"
|
||||||
|
"github.com/gohugoio/hugo/htesting"
|
||||||
"github.com/gohugoio/hugo/tpl/internal"
|
"github.com/gohugoio/hugo/tpl/internal"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
)
|
)
|
||||||
@@ -29,6 +30,7 @@ func init() {
|
|||||||
Cfg: viper.New(),
|
Cfg: viper.New(),
|
||||||
Log: loggers.NewErrorLogger(),
|
Log: loggers.NewErrorLogger(),
|
||||||
BuildStartListeners: &deps.Listeners{},
|
BuildStartListeners: &deps.Listeners{},
|
||||||
|
Site: htesting.NewTestHugoSite(),
|
||||||
}
|
}
|
||||||
|
|
||||||
var namespaces internal.TemplateFuncsNamespaces
|
var namespaces internal.TemplateFuncsNamespaces
|
||||||
|
Reference in New Issue
Block a user