From: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date: Thu, 5 Apr 2018 16:02:52 +0000 (+0200)
Subject: Fix livereload for the home page bundle
X-Git-Tag: v0.38.1~4
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f87239e4c;p=brevno-suite%2Fhugo

Fix livereload for the home page bundle

Fixes #4576
---

diff --git a/hugolib/hugo_sites.go b/hugolib/hugo_sites.go
index cac59e4c..16beb3db 100644
--- a/hugolib/hugo_sites.go
+++ b/hugolib/hugo_sites.go
@@ -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)