mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
tpl, hugolib: Fix live-reload of non-renderable content pages
Fixes #3062
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user