Accessing the image location through Markdown frontmatter

Okay so I have a Markdown file looking like this:

title = "test-title"
date  = "2012-06-24T11:24:21-04:00"
description  = "test-description"
slug  = "test-slug"
image  = "/image/location/img.jpg"

How can I access this image file through the frontmatter using the curly brackets?

{{ }}

I cant locate the answer through the Hugo site. If anyone has done this before, your help would be much appreciated. Thanks!


You can try using the shortcode param:


For using it in templates, check the page variables section:

1 Like