hugolib: Fix deletion of orphaned sections
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 20 Feb 2020 12:40:16 +0000 (13:40 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 20 Feb 2020 12:40:16 +0000 (13:40 +0100)
commita70bbd0696df3b0a6889650e48a07f8223151da4
tree3f0d314e25f41039feb8ea3669bce0aaa9d5aac7
parent24afe2b822b458bae8f2ca9a9e095339f820a2f6
hugolib: Fix deletion of orphaned sections

Avoid deleting inside the recursive walk.

Fixes #6920
hugolib/content_map.go