I cannot get my images to show up on my Hugo test site. My posts get authored in an Obsidian Blog folder that has an attachments subfolder. I’m using relative paths, so the markdown shows this link

For Hugo I have the following in VCS
My Hugo repo:
My posts repo:
Located inside the above repo in the “content/posts”
My post repo is a sub-module inside my Hugo repo. Whenever I add a post, a pipeline kicks off to re-run hugo --minify and publishes my site to my web-server.
I did see jmooring’s post here: Is there a simple way to display images in hugo?
which helped initially but my path’s are different as my attachments folder is in my content/posts folder. I’ve tried a number of different paths, but nothing is sticking. Can someone point me in the right direction?
Thanks for your reply @jmorring. I fixed the sub-modules so everything should be public now and anyone should be able to clone with the recurse command.
I can’t currently and would rather not put the attachments folder at the root of content, because they currently are inside the posts folder/submodule.
Excellent point. I was trying to have a single Obsidian vault for private and blog/Hugo posts, but having attachments at root I won’t be able to do this. So I now changed my setup so I have a single vault for my blog/Hugo (probably better that way in case I “oops” and upload a private note). So with this new setup I moved the location of the “Hugo-richard-posts” submodule to my content folder. Now my posts don’t show at all but the content is there in the public folder. I know I changed a number of items, so I have to slow down and see where it broke (one step forward, two steps back lol).
Adding more context to my above post, I cloned my hugo-richard-posts as a submodule in my contents/posts folder, and Hugo-richard-posts if a new dedicated Obsidian vault.
Ah, I just noticed the images display on the homepage but not on individual posts. I noticed the links are different:
homepage image url: https://blog.theoswalds.com/attachments/cat-typing-4031388285.gif
post url: https://blog.theoswalds.com/posts/picture-test/attachments/cat-typing-4031388285.gif
However, if I were you I would move the root of your vault and the attachments directory into the content directory (that means moving the content repository up a level too) and then adjust the mounts. That way your content repo can include posts and other content types. Placing the (global) attachments directory inside the posts directory doesn’t make sense to me.
Thank you jmooring for the handholding on this. I moved up directories so the items are now up a level in the content directory and I also added two different folders for different content types (“travel” and “tutorials”). I can’t figure out how to tell Hugo to show all folders though, I can only select one at a time with this.
If you’re talking about the home page, look at your “terminal” theme, specifically the home page layout. Override that to include whatever you want, perhaps just removing the where clause from line 15.
I decided to create a “posts” top level folder in my obsidian vault. This sits along side the attachments folder. Inside the posts folder I have sub-folders for “travel” and “tutorials”. This is currently showing all the posts.
Two follow-up questions:
Besides “posts” what other content types could there be?
Do you see any issues down the road with the current setup?