-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
Params case handling doesn't work in where when given a sequence of pages #7009
Comments
This issue was originally meant to be fixed by a3fe5e5, but I don't see where the tests actually cover the |
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. |
Same here:
Works: |
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. |
The problem
Struggling to get
where
to behave like an example in the docs. I asked for help on the forums (discussion here) and the "solution" was to lowercase a parameter name. This solved the issue, but without lowercasing it in the frontmatter. It also seemed inconsistent, as accessing the camelcased parameter name worked with other functions.There are code examples in the discussion. I have also added a branch to my repo to preserve the broken vs working examples (as I want to continue working on the project) https://github.com/StarfallProjects/habermas-concepts/tree/brokenWorkingWHERE
If you clone, checkout that branch, run
hugo server --buildDrafts
, and from the homepage select Concepts > A concept, you should get an example output for this layout: https://github.com/StarfallProjects/habermas-concepts/blob/brokenWorkingWHERE/layouts/concepts/single.htmlIt has various ways of doing the same thing, broken and working.
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes
The text was updated successfully, but these errors were encountered: