Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.Sections for content/foo.md includes sibling sections #6365

Closed
pointyfar opened this issue Sep 23, 2019 · 0 comments
Closed

.Sections for content/foo.md includes sibling sections #6365

pointyfar opened this issue Sep 23, 2019 · 0 comments
Milestone

Comments

@pointyfar
Copy link

@pointyfar pointyfar commented Sep 23, 2019

As per: https://discourse.gohugo.io/t/sections-for-content-foo-md-includes-sibling-sections/20905

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)

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

@bep bep added this to the v0.59 milestone Sep 23, 2019
@bep bep modified the milestones: v0.59, v0.60 Oct 21, 2019
@bep bep closed this in da53523 Nov 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.