Skip to main content
Ungathered Thoughts

Importing image directories to Eleventy

My previous attempt at getting images into Eleventy didn't work out. I mean, it worked, but I wanted something different from what I'd built.

That package might be useful (eg if I wanted to publish all my cloud and sunset photos), but mostly I want to share a handful of photos like "Sandymount walk", which is a different use case.

Previous workflow:

New workflow:

This is still pretty manual, but simplifies versus having content across disparate systems.

I generally echo '*' > src/media/<directory>/.gitignore and handle the media uploads with rsync, to keep the large files out of the repo.