diff --git a/content.go b/content.go index be28775..f01191b 100644 --- a/content.go +++ b/content.go @@ -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, diff --git a/hugo.go b/hugo.go index b5e6434..72e3b58 100644 --- a/hugo.go +++ b/hugo.go @@ -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) }