.Sections for content/foo.md includes sibling sections

Given the following (simplified) structure:

content
├── _index.md
├── orange.md
├── green
│   └── tea
│       └── index.md
├── purple
│   └── index.md
├── red
│   ├── flower
│   │   ├── _index.md
│   │   └── ...
└── yellow
    ├── _index.md
    └── ...

.Sections for page /orange/ (and /purple/) contains the sibling (same-level) pages that are sections:

Page(/green), 
Page(/yellow/_index.md), 
Page(/red)

Is this intended?

Tested with 0.57.x and 0.58.x; 0.56 returns [].

Demo: https://amazing-minsky-d987df.netlify.com/orange/

Repo: https://github.com/pointyfar/hugo-filenames

2 Likes

No, that sounds like a bug.

1 Like

Noted, thanks. I’ve opened a Github issue: https://github.com/gohugoio/hugo/issues/6365