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

Add .Param func on Node and Page #1462

Closed
bep opened this issue Sep 28, 2015 · 1 comment
Closed

Add .Param func on Node and Page #1462

bep opened this issue Sep 28, 2015 · 1 comment

Comments

@bep
Copy link
Member

bep commented Sep 28, 2015

.Param(string)

  • Page: Returns .Params if found, else lookup in .Site.Params
  • Node: Lookup in .Site.Params

Common use case:

{{ .Param "description" }}

See http://discuss.gohugo.io/t/setting-params-on-homepage/1770/3

@bep bep closed this as completed in 078fad4 Oct 12, 2015
bep added a commit that referenced this issue Oct 12, 2015
bep added a commit that referenced this issue Oct 12, 2015
bramp pushed a commit to bramp/hugo that referenced this issue Dec 17, 2015
This  is a convenience method to do lookups in Page's (Page only)  and Site's Params map (Page and Node), in that order.

Fixes gohugoio#1462
bramp pushed a commit to bramp/hugo that referenced this issue Dec 17, 2015
bramp pushed a commit to bramp/hugo that referenced this issue Dec 17, 2015
tychoish pushed a commit to tychoish/hugo that referenced this issue Aug 13, 2017
This  is a convenience method to do lookups in Page's (Page only)  and Site's Params map (Page and Node), in that order.

Fixes gohugoio#1462
tychoish pushed a commit to tychoish/hugo that referenced this issue Aug 13, 2017
tychoish pushed a commit to tychoish/hugo that referenced this issue Aug 13, 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 Apr 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

1 participant