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 · 1 comment
Closed

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

pointyfar opened this issue Sep 23, 2019 · 1 comment

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 removed this from the v0.59 milestone Oct 21, 2019
@bep bep added this to the v0.60 milestone Oct 21, 2019
@github-actions
Copy link

@github-actions github-actions bot commented Feb 12, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants