Permalink
Browse files

hugolib: Fix livereload of bundled pages

Fixes #4607
  • Loading branch information...
bep committed Apr 12, 2018
1 parent 9c782d5 commit f3775877c61c11ab7c8fd1fc3e15470bf5da4820
Showing with 1 addition and 6 deletions.
  1. +1 −6 hugolib/hugo_sites.go
View
@@ -712,12 +712,7 @@ func (m *contentChangeMap) resolveAndRemove(filename string) (string, string, bu
fileTp, isContent := classifyBundledFile(name)
// This may be a member of a bundle. Start with branch bundles, the most specific.
if fileTp != bundleLeaf {
if fileTp == bundleNot && isContent {
// Branch bundles does not contain content pages as resources.
return dir, filename, bundleNot
}
if fileTp == bundleBranch || (fileTp == bundleNot && !isContent) {
for i, b := range m.branches {
if b == dir {
m.branches = append(m.branches[:i], m.branches[i+1:]...)

0 comments on commit f377587

Please sign in to comment.