Problem with the images in github

Hi, this is my first project with Hugo and GitHub. I have read several posts about it, but still I can’t see the photos on my website. I have tried two ways: The first one is the one you can see on line 28 of the code:

I have put /images, ./images… but nothing. In the preview, with the code I can see it now, but not in the browser.
As this did not work for me, I tried to direct the path of the images to a server, as you can see in line 11 of the same code. Here the result is also frustrating: in some browsers you can see it, but not in most of them…
I would prefer to do it the first way, although the second way can also work for me.
Thanks in advance

Translated with DeepL.com (free version)

https://discourse.gohugo.io/t/must-all-images-be-in-the-static-folder/52002/3

hello thank you for your reply.
I have tried to follow your suggestion, but with little success, probably because of my lack of knowledge. Anyway it is clear to me that the folder organization I followed is not the best :wink:
thank you

You could create one sub-directory per content file like

  bitacora
         |---- index.md
         |---- imageforbitacora.jpg
  digitalization
         |---- index.md
         |---- imagefordigitalization.jpg

etc. Before that, you might want to read about page bundles etc. in the documentation:

ok, now everything is working perfectly, thanks for your answers

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.