hugolib: Fix livereload of bundled pages

Fixes #4607
This commit is contained in:
Bjørn Erik Pedersen 2018-04-12 12:19:46 +02:00
parent 9c782d5147
commit f3775877c6
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -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:]...)