11ty / eleventy

A simpler site generator. Transforms a directory of templates (of varying types) into HTML.
https://www.11ty.dev/
MIT License
16.84k stars 487 forks source link

Collection of all pass-through files? #1581

Open alaskamapscience opened 3 years ago

alaskamapscience commented 3 years ago

Is there a way to generate a collection that contains all the files that are passthrough-copied to the output? I've tried adding tags to the data.json file for the directory, but can't figure out how to get the individual files to be processed into a collection if they don't have a filename extension that matches one of the template engines. In particular, I have a directory of binary files that I want to make be individually downloadable.

edthedev commented 3 years ago

In general, a much simpler pass through option would be welcome.

Even just an option to add one line per file to .eleventy.js would be welcome.