You need to let Hugo determine the image URL.
If you want to keep your images in the static directory, and you don’t want to mount the static directory to the assets directory, you need to use the relURL
or relLangURL
function to resolve the front matter image path(s) to the correct URL.
The image path(s) in front matter must NOT begin with a slash, and must NOT include the static directory:
images: ["images/blog/enfantDuRetro.jpg"]
Instead of doing something like this (incorrect):
{{ with .Params.images }}
<img src="{{ index . 0 }}" alt="">
{{ end }}
Do this (correct):
{{ with .Params.images }}
<img src="{{ index . 0 | relLangURL }}" alt="">
{{ end }}
If it were my theme, I would (maybe) use the static directory for things like favicon.ico and robots.txt. Then I would use either page bundles or the assets directory to store images. In both cases the images are easily captured as resources, allowing you to resize, etc. Using the static directory is an outdated construct.