I have a question on the page bundles in i18n mode.
Assume that we have a directory structure as follows:
content ├── english │ └── testpost │ ├── index.md │ └── cat.jpg └── french └── testpost └── index.md
Then even though we don’t have the “cat.jpg” file in “french” langauge version, hugo will search the same file in other language directory depending on the weight parameter so following markdown will print correct cat image.
title: "French page" --- French page ![cat image here](cat.jpg)
But the problem is that, if we build the actual site, then the image gets duplicated for each language version. So the final public directory after building process looks like
public ├── en │ └── posts │ └── testpost │ ├── index.html │ └── cat.jpg └── fr └── posts └── testpost ├── index.html └── cat.jpg
You can see that “cat.jpg” file is copied for both languages.
Is there any way not generating the shared page bundles? I mean, since there is no cat.jpg file in French version of source file, then the output image tag should be something like
, so we do not copy same file.