Skip to content

Add .Param func on Node and Page #1462

@bep

Description

@bep

.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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions