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

Allow .Param to search nested maps #2598

Closed
bep opened this issue Oct 17, 2016 · 1 comment
Closed

Allow .Param to search nested maps #2598

bep opened this issue Oct 17, 2016 · 1 comment
Assignees
Milestone

Comments

@bep
Copy link
Member

bep commented Oct 17, 2016

So for key foo.bar:

  1. Check top-level for foo.bar
  2. Traverse the path foo, bar etc.
@bep bep added this to the v0.18 milestone Oct 17, 2016
@bep bep modified the milestones: v0.19, v0.18 Dec 16, 2016
fj added a commit to fj/hugo that referenced this issue Feb 19, 2017
The Param method currently assumes that its argument is a single,
distinct, top-level key to look up in the Params map. This enhances the
Param method; it will now also attempt to see if the key can be
interpreted as a nested chain of keys to look up in Params.

Fixes gohugoio#2598.
@bep bep closed this as completed in b2e3748 Feb 19, 2017
@github-actions
Copy link

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 27, 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

1 participant