Thumbnail image

Guide to Thumbnails in Hugo

Thumbnails can be enabled easily by setting the thumbnail parameter in the frontmatter to an image such as "images/landscape.jpg".

Make sure to copy the image the static/images/ directory.

If put together, it will look like this (that's in fact this post's frontmatter):

 1+++
 2author = "Hugo Authors"
 3title = "Guide to Thumbnails in Hugo"
 4date = "2019-03-04"
 5description = "Guide to Thumbnails in Hugo"
 6tags = [
 7    "thumbnail",
 8]
 9thumbnail= "images/landscape.jpg"
10+++