shithub: hugo

Download patch

ref: f3775877c61c11ab7c8fd1fc3e15470bf5da4820
parent: 9c782d5147bfea0dd85cf3374f598f0176f204eb
author: Bjørn Erik Pedersen <[email protected]>
date: Thu Apr 12 08:19:46 EDT 2018

hugolib: Fix livereload of bundled pages

Fixes #4607

--- a/hugolib/hugo_sites.go
+++ b/hugolib/hugo_sites.go
@@ -712,12 +712,7 @@
 	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:]...)