Adding Featured Images to a Hugo Blog
![](posts/adding_featured_images_to_hugo//featured_image.png)
It took me ages to figure this out, but I’m happy now it’s done, even if the solution isn’t the most elegant. I wanted to display an image for each blog post summary on my home page — like a thumbnail or featured image or something.
I eventually came across page variables and file variables in the official Hugo documentation, and made changes to my site’s /layouts/_default/summary.html file. Here’s the part of that file that I changed: ...