Don_Li
January 30, 2017, 4:11pm
#1
I want to change hugo’s post image.
+++
title = "how to read the book"
draft = false
date = "2017-01-25T21:39:26-06:00"
image = "book.jpg"
+++
Hello World. New Book Review.
I put book.jpg under mywebsite/static/images/ directory. But the post still using the default image.
Any suggestions?
samozzy
January 30, 2017, 8:50pm
#2
Without knowing more, is it not finding that image and using the default as a fallback for a 404? Perhaps image = "static/images/book.jpg"
would work.
What theme are you using? There’s probably something in the appropriate template file but, again, without knowing more I can’t help more than that.
Don_Li
January 31, 2017, 2:07pm
#3
I solved this issue by changing image = “book.jpg” to thumbnail = “images/book.jpg”
I followed the official guide from https://gohugo.io/overview/quickstart/ originally. It is very confusing.
ArayCHN
February 1, 2017, 6:57am
#4
Hey I’ve also come across the same problem in the quickstart tutorial. Neither your nor @Don_Li ’s solution works for me. So basically the tutorial is wrong (or it’s because of the update of the theme ROBUST). I wonder if I can find a “standard” solution? This seems newbie-unfriendly lol