Hi all,
I have an issue I am trying to resolve. We are working on a large multi-lingual webpage with a lot of images. In order to be able to efficiently author and edit articles, we organized everything in page bundles. However, upon rendering we noticed that all images are duplicated for each language. This results in a very large output.
Content organization:
post-about-something-interesting/
├── images
│ ├── image1.jpg
│ ├── image2.png
│ ├── image3.png
│ ├── image4.jpg
│ ├── image5.jpg
│ ├── image6.jpg
│ ├── image7.jpg
│ └── image8.jpg
├── index.de.md
├── index.en.md
├── index.es.md
├── index.fr.md
└── index.pl.md
Output of generated pages
public/fr/post-about-something-interesting/
├── images
│ ├── image1.jpg
│ ├── image2.png
│ ├── image3.png
│ ├── image4.jpg
│ ├── image5.jpg
│ ├── image6.jpg
│ ├── image7.jpg
│ └── image8.jpg
├── index.html
public/en/post-about-something-interesting/
├── images
│ ├── image1.jpg
│ ├── image2.png etc
├── index.html
public/es/post-about-something-interesting/
├── images
│ ├── image1.jpg
│ ├── image2.png etc
├── index.html
public/de/post-about-something-interesting/
├── images
│ ├── image1.jpg
│ ├── image2.png etc
├── index.html
Is there a way to tell Hugo to copy the images in page bundles in to a shared output directory? This will help both with rendering in the development version as well as caching of media in the browser.
What are other options for addressing this issue?
Thank you!