hugolib: Add ConfigSourceDescriptor

To prepare for config in themes

See #4490
This commit is contained in:
Bjørn Erik Pedersen
2018-03-18 10:32:29 +01:00
parent b6798ee867
commit 3d1a6e109c
6 changed files with 39 additions and 20 deletions

View File

@@ -306,7 +306,7 @@ func InitializeConfig(running bool, doWithCommandeer func(c *commandeer) error,
// Init file systems. This may be changed at a later point.
osFs := hugofs.Os
config, err := hugolib.LoadConfig(osFs, source, cfgFile)
config, err := hugolib.LoadConfig(hugolib.ConfigSourceDescriptor{Fs: osFs, Src: source, Name: cfgFile})
if err != nil {
return nil, err
}