mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +02:00
Fix some livereload content regressions
Introduced in Hugo 0.38. Fixes #4566
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user