<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/using-a-folder-other-than-posts-with-eleventy-dejptd4xn" -->

---
title: Using a folder other than posts/ with Eleventy | daily.dev
description: The author migrated their personal site to Eleventy after previously using a custom generator called enchilada. They describe why Eleventy fit their needs...
canonical: https://daily.dev/posts/using-a-folder-other-than-posts-with-eleventy-dejptd4xn
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Using a folder other than posts/ with Eleventy | daily.dev
og:description: The author migrated their personal site to Eleventy after previously using a custom generator called enchilada. They describe why Eleventy fit their needs...
og:url: https://daily.dev/posts/using-a-folder-other-than-posts-with-eleventy-dejptd4xn
og:image: https://api.daily.dev/og/posts/dEJpTD4xn.png
og:image:alt: Using a folder other than posts/ with Eleventy
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Using a folder other than posts/ with Eleventy

**[Eric Bailey](https://daily.dev/sources/ericwbailey)** · 2 min read · 0 upvotes · 0 comments

## Summary

The author migrated their personal site to Eleventy after previously using a custom generator called enchilada. They describe why Eleventy fit their needs better than heavier tooling like Webpack or GraphQL-based frameworks, and share a code snippet from Dave Rupert showing how to use getFilteredByGlob to configure a custom content directory (instead of the default posts/) and even target multiple directories at once.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://ericwbailey.website/published/using-a-folder-other-than-posts-with-eleventy>

## Questions this post answers

### How do I make Eleventy use a folder other than posts/ for my content?

Use eleventyConfig's collection API with getFilteredByGlob, pointing it at your desired folder such as writing/*.md instead of the default posts/*.md. You can also pass an array to target multiple directories at once, for example getFilteredByGlob(["writing/*.md", "notes/*.md"]), which lets you combine content from several folders into one collection.

_Developers customizing Eleventy collections can find similar configuration tips shared across daily.dev._

## Similar posts on daily.dev

- [Migrating from Statamic to Eleventy. This site’s had major surgery](https://daily.dev/posts/migrating-from-statamic-to-eleventy-this-site-s-had-major-surgery-zw48ycgv8) · Blogging and all that Malarkey · 0 upvotes · 0 comments
- [Blog Search with Eleventy](https://daily.dev/posts/blog-search-with-eleventy-46zwaklfm) · Kitty says hi. · 1 upvotes · 0 comments
- [How to make your own static site generator](https://daily.dev/posts/how-to-make-your-own-static-site-generator-jfrbheb6t) · Lobsters · 1 upvotes · 0 comments
- [Four things that made my Eleventy website faster without removing the fun](https://daily.dev/posts/four-things-that-made-my-eleventy-website-faster-without-removing-the-fun-5pnqlr22o) · Blogging and all that Malarkey · 2 upvotes · 0 comments
- [JeffGeerling.com has been Migrated to Hugo](https://daily.dev/posts/jeffgeerling-com-has-been-migrated-to-hugo-owf18dark) · Jeff Geerling · 4 upvotes · 0 comments

---

Tags: [#webdev](https://daily.dev/tags/webdev)

[View this post on daily.dev](https://daily.dev/posts/using-a-folder-other-than-posts-with-eleventy-dejptd4xn)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Using a folder other than posts/ with Eleventy","url":"https://daily.dev/posts/using-a-folder-other-than-posts-with-eleventy-dejptd4xn","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/using-a-folder-other-than-posts-with-eleventy-dejptd4xn"},"datePublished":"2026-09-20T07:44:07.229Z","dateModified":"2026-09-20T07:46:19.444Z","description":"The author migrated their personal site to Eleventy after previously using a custom generator called enchilada. They describe why Eleventy fit their needs...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/cb10f178805900873b3f95b4a150fe76?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/cb10f178805900873b3f95b4a150fe76?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Eric Bailey","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Eric Bailey","logo":"https://media.daily.dev/image/upload/s--r1vwe6z1--/f_auto,q_auto/v1789890198/logos/ericwbailey?_a=BAMAMicg0","url":"https://daily.dev/sources/ericwbailey"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/using-a-folder-other-than-posts-with-eleventy-dejptd4xn","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"webdev","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Eric Bailey","item":"https://daily.dev/sources/ericwbailey"},{"@type":"ListItem","position":3,"name":"Using a folder other than posts/ with Eleventy"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/using-a-folder-other-than-posts-with-eleventy-dejptd4xn#faq","mainEntity":[{"@type":"Question","name":"How do I make Eleventy use a folder other than posts/ for my content?","acceptedAnswer":{"@type":"Answer","text":"Use eleventyConfig's collection API with getFilteredByGlob, pointing it at your desired folder such as writing/*.md instead of the default posts/*.md. You can also pass an array to target multiple directories at once, for example getFilteredByGlob([\"writing/*.md\", \"notes/*.md\"]), which lets you combine content from several folders into one collection. Developers customizing Eleventy collections can find similar configuration tips shared across daily.dev."}}]}
```

