Adding image to post

Problem with Image Display in Hugo Post


Hi everyone,

I’m having trouble getting an image to display in one of my Hugo posts, and I could really use some help.

What I’m trying to do:

My image is filed in

static/cau.jpeg
static/images/cau.jpeg
assets/images/cau.jpeg

In my post, I added ![cau](/cau.jpeg) and many variations but none of them works.

![./cau](./cau.jpeg)  
![../cau](./cau.jpeg)  
![static/cau](static/cau.jpeg)  
![./static/cau](./static/cau.jpeg)  
![../static/cau](./static/cau.jpeg)

What happening:

The image isn’t showing up when I build and view the site locally. Instead, I just see the alt text, or sometimes nothing at all. There are no error messages in the Hugo build output.

My GitHub repo

Could anyone point me in the right direction or suggest what else I should check? Thanks in advance for any assistance!

Problem solved after reading Where to place image files when using the Markdown content format

Thanks to jmooring