-
@fvsch @kilianvalkhof There is no documentation for this way of using Eleventy. I use computed data from directory data files: 11ty.dev/docs/data-computed/ I won't say it's easy, but it's possible. In my WIP photography site, you can see folders: github.com/nhoizey/nicolas-hoizey.photo/tree/main/src/travels/europe nicolas-hoizey.photo/travels/europe/
-
@fvsch @kilianvalkhof Here's how I get the list of all folder in a collection: github.com/nhoizey/nicolas-hoizey.photo/blob/main/src/_11ty/collections/photos.js#L30-L39 (Each folder contains an
index.md
file.) And here's how I get the list of sub-folders with a filter: github.com/nhoizey/nicolas-hoizey.photo/blob/main/src/_layouts/gallery.njk#L19 github.com/nhoizey/nicolas-hoizey.photo/blob/main/src/_11ty/filters/collection.js#L20-L24 Not easy, but possible. -
@fvsch @kilianvalkhof All of this was inspired by a contribution from @tylersticka : github.com/11ty/eleventy/issues/399#issuecomment-466514166