summaryrefslogtreecommitdiffstats
path: root/hugolib
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-04-05 18:02:52 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-04-05 18:03:33 +0200
commitf87239e4cab958bf59ecfb1beb8cac439441a553 (patch)
tree4c31992744b9b3bc18250b5f9ea88d45f6368c02 /hugolib
parentdb0633c1a45f69f76ad2f4034b49adbf9d60c7ae (diff)
Fix livereload for the home page bundle
Fixes #4576
Diffstat (limited to 'hugolib')
-rw-r--r--hugolib/hugo_sites.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/hugolib/hugo_sites.go b/hugolib/hugo_sites.go
index cac59e4ca..16beb3db6 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)