I have my blog posts and images together in the content folder like this:
I want to reference the images in my .md content files like this: ![4 Weeks 1](4weeks1.jpg).
I’ve been reading the docs and support questions about bundles and image processing, but I can’t figure out what I need to change to make this work. I’d like to do the closest thing to what I described above.
I tried making a subfolder for each post like this, but it also did not work:
it is looking for your image at the same folder as the current page, which is not where the image is. So on the homepage, It looks for example.com/4weeks3.jpg and on the post page it looks for example.com/posts/4weeks3/4weeks3.jpg. You can see this in your browser’s console log (right click > inspect > console).
You have it under content/posts/, which means it is being rendered at example.com/posts/4weeks3.jpg. Try it as ![4 Weeks 3](/posts/4weeks3.jpg) instead.