I am migrating a website to use page bundles so I can use image pipelines, and I’m struggling with how the content is organized in the public
folder.
In the content
folder, I have page bundles that look like:
-
content/posts/2021-03-11-title/
which contain things like:-
content/posts/2021-03-11-title/index.md
→ the post -
content/posts/2021-03-11-title/images/foo.png
→ various images
-
I am using image pipelines to create multiple smaller versions of those images.
The problem is that after migrating to this system, all images (minified and not) are kept in the page bundle. So in the public folder I have images all over the place, for example:
public/2021/03/11/title/foo.png
-
public/2021/03/11/title/foo-xxxxx-yyy.jpg
(for minified images
I need all images to be put in a separate folder, such as public/images/
. It’s fine if they’re in subfolders there, but I need them to be in a separate path so I can more easily manage them through the CDN.
I have been looking at the docs but I can’t seem to find a solution to this.
Any suggestion?