summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2018-07-19 12:50:24 +0200
committerBjørn Erik Pedersen <[email protected]>2018-07-19 13:58:18 +0200
commit12679b408362a93a3c6159588d6291a3b7ed5548 (patch)
treec1ee75b7fda5bd14803b5d7d33eb92938b40db13
parentc39ac5738d5841c2fbcdeaa637182b918be22667 (diff)
downloadhugo-12679b408362a93a3c6159588d6291a3b7ed5548.tar.gz
hugo-12679b408362a93a3c6159588d6291a3b7ed5548.zip
hugolib: Mark shortcode changes as content changes in server mode
This is unfortunate, but is needed to re-create the taxonomies collections etc. that may be referenced from them. Fixes #4965
-rw-r--r--hugolib/site.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/site.go b/hugolib/site.go
index 42e429e67..08cdd2652 100644
--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -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,
}