I’m on the way to migrate my blog on hugo. Right now it has 90 posts. And there is in plans to add around 60, may be more. I’ve decided to use page bundle hierarchy, because this seems to be more clear. What about post’s images? More flexible way is to collect them all in
/static/img or in post bundle?
If I collect images in the bundle, this seems to be more consistent.
If I collect images in
/static/img I can navigate to this folder and explore all exisiting images in one place. Image repeat is less probably.
You have named the advantages and disadvantages. So, it is also a matter of taste.
I prefer to sort file or folder names chronologically. So this is my way to go:
│ ├─ index.md
│ ├─ image.jpg
│ └─ film.mp4
This way stray images and files can be easily avoided, and images can easily be processed.
Also, you can retrieve the date from the folder name:
Cool one. I’m going to make something similar:
│ ├─ index.md
│ └─ editor-notes.md
│ └─ index.md
└ └─ index.md
And to store all images and static files in
/static/. Is this looks ok with page bundles?
That looks ok.
Please note this comment:
image is a Page Resource, and the processing methods listed below do not work on images inside your
If image processing is not needed there is absolutely no problem.
If I remember properly you could process images from a folder within
For other file types like mp3 the static folder is a perfect place.
My preferred method of dealing with images is suggested by Forestry. If you omit the
headless: true part in the front matter, then you’ll still be able to browse the