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

Support page bundles in content root #4332

Closed
kaushalmodi opened this issue Jan 26, 2018 · 5 comments · Fixed by #4338
Closed

Support page bundles in content root #4332

kaushalmodi opened this issue Jan 26, 2018 · 5 comments · Fixed by #4338
Assignees
Milestone

Comments

@kaushalmodi
Copy link
Contributor

Hello,

This issue was discovered by @RickCogley and discussed here.

The problem is that if a "leaf" bundle (page bundle with index.md) directory is put directly under content/, it gets rendered using the Section or list layout.

This prevents one to convert root level pages like content/about.md to page bundle structure: content/about/index.md.

@bep bep changed the title Page bundles with "index.md" get rendered using list layout if bundle directly under content/ Support page bundles in content root Jan 26, 2018
@kaushalmodi
Copy link
Contributor Author

kaushalmodi commented Jan 26, 2018

In addition, what's surprising is that this behavior is inconsistent (atleast when using hugo server, using commit 6413559).

At times, the browser refreshes and shows that page with single layout. If I modify the index.md file, the browser auto-reloads and could show the same using list layout. That's really odd.. while I can consistently make this happen, I cannot figure out what causes single layout to load vs list layout.

@kaushalmodi
Copy link
Contributor Author

Test file: Markdown | Hugo Output

@bep
Copy link
Member

bep commented Jan 26, 2018

In addition, what's surprising is that this behavior is inconsistent (

This a race: it is both a section and a page bundle. It is random who will win.

@bep bep added Bug and removed Enhancement labels Jan 26, 2018
@bep bep self-assigned this Jan 26, 2018
@bep bep added this to the v0.35 milestone Jan 26, 2018
bep added a commit to bep/hugo that referenced this issue Jan 27, 2018
bep added a commit to bep/hugo that referenced this issue Jan 27, 2018
@bep bep closed this as completed in #4338 Jan 27, 2018
bep added a commit that referenced this issue Jan 27, 2018
@kaushalmodi
Copy link
Contributor Author

Thank you! I confirm the fix.

@github-actions
Copy link

github-actions bot commented Mar 8, 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 Mar 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants