Prior to v0.123.0 orphaned files were blindly copied to the publish directory. With v0.123.0 and later, they are not (this is intentional). My best guess is, without a section page in content/en/docs/data-link/vcsynchronizer/images, Hugo thinks the directory contents (recursively) are orphans.
There may be a bug here, but if so it is subtle and edge-casey. Having a directory in one language a section, and the same directory in another language not a section, seems like a rare use case, if not an outright structural error.
This needs some more investigation.
Summary
The fix is to make neither directory a section, or both directories a section.
git clone --single-branch -b hugo-forum-topic-48359 https://github.com/jmooring/hugo-testing hugo-forum-topic-48359
cd hugo-forum-topic-48359
rm -rf public && hugo && tree public
Now remove this file:
rm content/de/s1/images/_index.md
And test again:
rm -rf public && hugo && tree public
All good!
When a directory in one language is a section (has an _index.md file), and the same directory in another language is not a section, some of the page resources are treated as orphaned (not published).
@bep This is an edge case; not sure if it qualifies as a bug. The test example above is quick to run.
I have not tested the above, but in my head they are treated as duplicates (one of them is thrown away); you cannot have both a leaf and a branch bundle with the same logical page Path. We could possibly warn about it.
This seems to be the problem i’m having. All my header images are placed into a images/ directory, but if there is only a portuguese version of the page, it doesn’t show up.
content/post/2021/2021-11-09-facebook-empresas-meta has index.pt.md and this frontamatter