ref: f87239e4cab958bf59ecfb1beb8cac439441a553
parent: db0633c1a45f69f76ad2f4034b49adbf9d60c7ae
author: Bjørn Erik Pedersen <[email protected]>
date: Thu Apr 5 14:02:52 EDT 2018
Fix livereload for the home page bundle Fixes #4576
--- a/hugolib/hugo_sites.go
+++ b/hugolib/hugo_sites.go
@@ -676,6 +676,7 @@
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)