building drafts when regenerating for /author list page
This commit is contained in:
@@ -528,6 +528,7 @@ func (ch CaddyHugo) TmplData(r *http.Request, docref *docref) interface{} {
|
|||||||
doc = docref.doc
|
doc = docref.doc
|
||||||
}
|
}
|
||||||
if ch.HugoSites != nil && ch.HugoSites.Fs != nil {
|
if ch.HugoSites != nil && ch.HugoSites.Fs != nil {
|
||||||
|
ch.HugoSites.Cfg.Set("buildDrafts", true)
|
||||||
ch.HugoSites.Fs.Destination = afero.NewMemMapFs()
|
ch.HugoSites.Fs.Destination = afero.NewMemMapFs()
|
||||||
ch.Build()
|
ch.Build()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user