building drafts when regenerating for /author list page

pull/8/head
Stephen Searles 8 years ago
parent 629152ba52
commit 050c65679a
  1. 1
      caddyhugo.go

@ -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()
}

Loading…
Cancel
Save