I put jpg file at [static] folder. and I type this
![Some Text](/myImage.jpg)
And This is my html sorce code
<img src="/myImage.jpg" alt="Some Text"></p>
I’m affraid to ask this becase I think this is common question but I couln’t figure out.
I researched and tried but I doen’t work. Could someone teach me how to solove this?
My baseURL isn’t correct? I can display everything without image so I thoguth this is correct.
Actually I don’t have domain for this hugo project .I just run hugo as test my rental server. location is
[vs] dir.
And I tried your code. however image won’t show up. just This code displaied.
Are you really sure you’re replacing the <img src="/myImage.jpg" alt="Some Text"> with the code I posted in the layout html file?
Sorry, but I can’t do much without seeing the actual files. I’m basically shooting in the dark.
AFAIK, your problems seem to be related to relative paths. If you were using the "https://mywebsite.net/" as your baseURL and wanted to show the "https://mywebsite.net/hugo/vs/public/1.jpg" in a page called "https://mywebsite.net/whatever/", you would need to use a relative path, like ![1.jpg](../hugo/vs/public/1.jpg) or use something like the absURL/relURL function. But then again I don’t know your project structure.