Fix some livereload content regressions

Introduced in Hugo 0.38.

Fixes #4566
This commit is contained in:
Bjørn Erik Pedersen
2018-04-05 10:57:13 +02:00
parent 4d115c56fa
commit a4deaeff0c
3 changed files with 11 additions and 5 deletions

View File

@@ -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 {