Whenever I make a new entry of a particular kind with hugo new -k ⋯ and use an existing archetype, I’d like to be able to have all the assets wind up in a central location. That way, I can use S3 or a similar service to host the heavyweight binary assets in a separate place from the static site, and avoid having them pollute the git repository.
He said “part of a solution”. To begin with, you could make an “images” headless bundle, then use render hooks to “retrieve” those images. It’s one way to do it.
I’m putting files on fast.io with a custom domain and then use that base URL in my templates and image render hooks.
I had a project that went from 2.5 GB in the repository, to 1.8 MB. So fast to clone, cache, build in CI/CD, etc.
I think combining @zivbk1’s solution with @jmooring’s is the way to go: a separate directory hierarchy that mirrors the content, which you can use either on its own or have a separate CDN. Thanks to you both!