Ignoring Files with Eleventy

· Josh Sherman · Feb. 15, 2026, 11:10 p.m.
Summary
This blog post discusses the author's experiences with structuring sites using Eleventy, specifically how they accidentally exposed certain files like README.md on the internet. The post suggests two methods to ignore these files during build using .eleventyignore or modifying the eleventy.config.js. The author concludes by suggesting a better practice of decoupling site content from project root to simplify development.
AUTHOR
Sponsored
Zulip logo Zulip
Organized team chat for people who take work seriously. Topic-based threading keeps conversations focused.
Try Zulip
Become a sponsor →