building drafts when regenerating for /author list page

This commit is contained in:
2017-07-04 22:53:13 -07:00
parent 629152ba52
commit 050c65679a
+1
View File
@@ -528,6 +528,7 @@ func (ch CaddyHugo) TmplData(r *http.Request, docref *docref) interface{} {
doc = docref.doc
}
if ch.HugoSites != nil && ch.HugoSites.Fs != nil {
ch.HugoSites.Cfg.Set("buildDrafts", true)
ch.HugoSites.Fs.Destination = afero.NewMemMapFs()
ch.Build()
}