summaryrefslogtreecommitdiffstats
path: root/hugolib/site.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-04-05 10:57:13 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-04-05 14:28:45 +0200
commita4deaeff0cfd70abfbefa6d40c0b86839a216f6d (patch)
treedbbe39b90f2e569928ff197bb278e8aa5ca21c68 /hugolib/site.go
parent4d115c56fac9060230fbac6181a05f7cc6d10b42 (diff)
Fix some livereload content regressions
Introduced in Hugo 0.38. Fixes #4566
Diffstat (limited to 'hugolib/site.go')
-rw-r--r--hugolib/site.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/hugolib/site.go b/hugolib/site.go
index 4027ce075..b0d70bff2 100644
--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -1225,7 +1225,8 @@ func (s *Site) absContentDir() string {
}
func (s *Site) isContentDirEvent(e fsnotify.Event) bool {
- return s.getContentDir(e.Name) != ""
+ relDir, _ := s.PathSpec.RelContentDir(e.Name)
+ return relDir != e.Name
}
func (s *Site) getContentDir(path string) string {