Storing image as asset or page resource?

If I have a documentation site with 5 pages, and each page has 2 images, placing all 10 images in the assets directory would be fine.

If I have a documentation site with 1000 pages, and each page has 2 images, I would not want to place all 2000 images in the assets directory. Technically it would be fine, but what if I want to delete 5 pages (and the corresponding images) in the future? Deleting the images would be like searching for 10 needles in a haystack with 2000 straws.

I think of leaf bundles as “content encapsulation.”

More thoughts here

1 Like