Newbie: Where do people store images to posts

So I have the main hugo repo and a theme repo. The theme repo has images in it, The hugo repo the content/posts/

What I can’t get my head around is where should images be stored (that are related to posts). It seems odd putting them in the theme repo - that surely wants to be seperated. I want to put the images in /content/images - but I realise that somewhat mucks up the hugo engine as thats where it looks for content files (not images!). Any suggestions?


1 Like

Put them in /static/, typically /static/img/. I often use subdirectories with names identical to post slugs, ie:


to store images for that particular post.


cool. in the hugo repo right?

Yes, in your hugo site directory.

1 Like