mirror of
https://github.com/gohugoio/hugo.git
synced 2025-01-27 04:51:35 +00:00
parent
9c782d5147
commit
f3775877c6
1 changed files with 1 additions and 6 deletions
|
@ -712,12 +712,7 @@ func (m *contentChangeMap) resolveAndRemove(filename string) (string, string, bu
|
||||||
fileTp, isContent := classifyBundledFile(name)
|
fileTp, isContent := classifyBundledFile(name)
|
||||||
|
|
||||||
// This may be a member of a bundle. Start with branch bundles, the most specific.
|
// This may be a member of a bundle. Start with branch bundles, the most specific.
|
||||||
if fileTp != bundleLeaf {
|
if fileTp == bundleBranch || (fileTp == bundleNot && !isContent) {
|
||||||
if fileTp == bundleNot && isContent {
|
|
||||||
// Branch bundles does not contain content pages as resources.
|
|
||||||
return dir, filename, bundleNot
|
|
||||||
}
|
|
||||||
|
|
||||||
for i, b := range m.branches {
|
for i, b := range m.branches {
|
||||||
if b == dir {
|
if b == dir {
|
||||||
m.branches = append(m.branches[:i], m.branches[i+1:]...)
|
m.branches = append(m.branches[:i], m.branches[i+1:]...)
|
||||||
|
|
Loading…
Reference in a new issue