# Posts under folder/\_posts not getting generated

**URL:** <https://talk.jekyllrb.com/t/posts-under-folder--posts-not-getting-generated/813>\
**Category:** Help\
**Created:** [July 22, 2017, 10:16am UTC](https://talk.jekyllrb.com/t/posts-under-folder--posts-not-getting-generated/813 "2017-07-22T10:16:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![deepfriedbrain](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/deepfriedbrain/32/360_2.png) [@deepfriedbrain](https://talk.jekyllrb.com/u/deepfriedbrain)\
**Post date:** [July 22, 2017, 10:16am UTC](https://talk.jekyllrb.com/t/posts-under-folder--posts-not-getting-generated/813/1 "2017-07-22T10:16:37Z")

</div>

I have a folder structure like this:

```
cat1/
     _posts/
         post1.html
cat2/
     _posts/
         post2.html

```

My object is to have post1 get a category _cat1_ and post2 gets a category of _cat2_ automatically without specifying categories in the yaml front matter of each post. However, none of these posts appear in the generated \_site folder (cat1 and cat2 folders are not generated at all). Am I missing something?

I tried adding “categories: cat1 cat2” to my \_config.yml but it didn’t make any difference.

Do I need any special configuration to make it work?

Thanks.

---

<div class="post-metadata">

**Author:** ![deepfriedbrain](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/deepfriedbrain/32/360_2.png) [@deepfriedbrain](https://talk.jekyllrb.com/u/deepfriedbrain)\
**Post date:** [July 22, 2017, 10:26am UTC](https://talk.jekyllrb.com/t/posts-under-folder--posts-not-getting-generated/813/2 "2017-07-22T10:26:38Z")

</div>

I figured out the problem. The post names had to start with YYYY-MM-DD- . Thanks.
