Gopher
FUNCTIONS

.Param

Calls page or site variables into your template.

Syntax

.Param KEY

In Hugo, you can declare site-wide params (i.e. in your configuration ), as well as params for individual pages .

A common use case is to have a general value for the site and a more specific value for some of the pages (e.g., an image).

You can use the .Param method to call these values into your template. The following will first look for an image param in a specific content’s front matter . If not found, Hugo will look for an image param in your site’s configuration:

$.Param "image"