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/somefiles.md

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?

Will

1 Like

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

/content/future-of-bali.md
/static/img/future-of-bali/green-school-power-plant.jpg

to store images for that particular post.

3 Likes

cool. in the hugo repo right?

Yes, in your hugo site directory.

1 Like