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.
For example, instead of this
posts/first-post ├── assets/ │ ├── image-one.jpg │ └── image-two.jpg └── index.md posts/second-post ├── assets/ │ ├── image-three.jpg │ └── image-four.jpg └── index.md
I’d rather have this:
images/first-post ├── image-one.jpg └── image-two.jpg images/second-post ├── image-three.jpg └── image-four.jpg posts/first-post └── index.md posts/second-post └── index.md
That way, I can sync
images/ to S3 and keep it outside my git repository, while
posts/ is under version control and references images in
What’s the best way to accomplish this?