Fix livereload for the home page bundle
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 5 Apr 2018 16:02:52 +0000 (18:02 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 5 Apr 2018 16:03:33 +0000 (18:03 +0200)
Fixes #4576

hugolib/hugo_sites.go

index cac59e4ca041213b7ea3bf5c4d61c2288ab9acc3..16beb3db6c67fe659f7a26267be723eec47a7966 100644 (file)
@@ -676,6 +676,7 @@ type contentChangeMap struct {
 func (m *contentChangeMap) add(filename string, tp bundleDirType) {
        m.mu.Lock()
        dir := filepath.Dir(filename) + helpers.FilePathSeparator
+       dir = strings.TrimPrefix(dir, ".")
        switch tp {
        case bundleBranch:
                m.branches = append(m.branches, dir)