hugolib: Mark shortcode changes as content changes in server mode
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 19 Jul 2018 10:50:24 +0000 (12:50 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 19 Jul 2018 11:58:18 +0000 (13:58 +0200)
This is unfortunate, but is needed to re-create the taxonomies collections etc. that may be referenced from them.

Fixes #4965

hugolib/site.go

index 42e429e67a05716f17bbde116a9e5a14d68aab6f..08cdd265218863f706d266bc8495bff845fc404b 100644 (file)
@@ -817,7 +817,7 @@ func (s *Site) processPartial(events []fsnotify.Event) (whatChanged, error) {
        }
 
        changed := whatChanged{
-               source: len(sourceChanged) > 0,
+               source: len(sourceChanged) > 0 || len(shortcodesChanged) > 0,
                other:  len(tmplChanged) > 0 || len(i18nChanged) > 0 || len(dataChanged) > 0,
                files:  sourceFilesChanged,
        }