updating to latest api
This commit is contained in:
+1
-1
@@ -64,7 +64,7 @@ func GetContent(siteRoot string, sites *hugolib.HugoSites) ([]Content, error) {
|
||||
page := sites.GetContentPage(fn)
|
||||
if page != nil {
|
||||
files[i].Metadata = &Metadata{
|
||||
Title: page.Title,
|
||||
Title: page.Title(),
|
||||
Path: file.Filename,
|
||||
Date: page.Date,
|
||||
Lastmod: page.Lastmod,
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
"github.com/spf13/afero"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"git.stephensearles.com/stephen/caddy-hugo2/theme-additions"
|
||||
themeadditions "git.stephensearles.com/stephen/caddy-hugo2/theme-additions"
|
||||
"git.stephensearles.com/stephen/idleshut"
|
||||
)
|
||||
|
||||
@@ -82,7 +82,7 @@ func (ch *CaddyHugo) configWithFs(fs afero.Fs) (*hugolib.HugoSites, *deps.DepsCf
|
||||
cfg := &deps.DepsCfg{Fs: hfs}
|
||||
|
||||
cfgPath := path.Join(ch.Dir, "config.toml")
|
||||
cfg.Cfg, err = hugolib.LoadConfig(fs, "", cfgPath)
|
||||
cfg.Cfg, _, err = hugolib.LoadConfig(hugolib.ConfigSourceDescriptor{Fs: fs, Path: cfgPath})
|
||||
if err != nil {
|
||||
return nil, cfg, fmt.Errorf("caddy-hugo: loading site configuration: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user