tpl, hugolib: Fix live-reload of non-renderable content pages

Fixes #3062
This commit is contained in:
Bjørn Erik Pedersen
2017-02-21 13:55:08 +01:00
parent 4e77c8717b
commit 2cbdd65330
4 changed files with 23 additions and 2 deletions

View File

@@ -107,6 +107,13 @@ func (h *HugoSites) initRebuild(config *BuildCfg) error {
h.runMode.Watching = config.Watching
if config.whatChanged.source {
// This is for the non-renderable content pages (rarely used, I guess).
// We could maybe detect if this is really needed, but it should be
// pretty fast.
h.Tmpl.RebuildClone()
}
for _, s := range h.Sites {
s.resetBuildState()
}