Frequently used Hugo variables


Sun Nov 29 2020


In general you access variables with open and closed curly braces.

Here is a list of the most important variables which I frequently used:

We can also access custom variables from our front matter:

We can create custom variables as well:

{{ $string := "hello" }} {{ $string }}