Using Parameters in Your Theme
In Hugo, you can access the parameters specified in the front matter of your content files (e.g., Markdown files) through your Hugo templates. These are called ‘Page-level Params’. This post explores how you can use these within your theme.
We’ll be using an example of
featured_image added our post below.
You can then use this parameter when editing your theme using the template tag shown below:
Which will be swapped to:
So, likewise, we can also add it inside an img element to display:
And that’s all there is to it, g’luck!