-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Wrong .Parent with pages with overlapping names (e.g. sdk and sdk_exporters) #12263
Comments
bep
added a commit
to bep/hugo
that referenced
this issue
Mar 15, 2024
I have a fix on its way, but I would recommend the theme author(s) to somehow simplify this construct: {{ $parent := .Page -}}
{{ $pages := (where .Site.Pages "Section" .Section).ByWeight -}}
{{ $pages = (where $pages "Type" "!=" "search") }}
{{ $pages = (where $pages ".Params.hide_summary" "!=" true) -}}
{{ $pages = (where $pages ".Parent" "!=" nil) -}}
{{ if and $parent.File .Parent .Parent.File -}}
{{ $pages = (where $pages "Parent.File.UniqueID" "==" $parent.File.UniqueID) -}}
{{ end -}} |
bep
added a commit
to bep/hugo
that referenced
this issue
Mar 16, 2024
bep
added a commit
that referenced
this issue
Mar 16, 2024
2 tasks
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The issue title is a big vague for now.
Reference: https://discourse.gohugo.io/t/subpage-missing-from-sections-page-list-when-using-0-123-8/48789
Minimal reproducible example:
Then visit http://localhost:1313/docs/logs/ to see the problem.
You will see "Stdout" in the menu on the left, but that page is not shown in the content listing with v0.123.0 or later.
The text was updated successfully, but these errors were encountered: